servant-elm 0.6.0.2 → 0.6.1
raw patch · 5 files changed
+10/−6 lines, 5 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−0
- README.md +2/−3
- servant-elm.cabal +1/−1
- src/Servant/Elm/Internal/Generate.hs +1/−1
- test/elm-sources/getOneWithDynamicUrlSource.elm +1/−1
CHANGELOG.md view
@@ -1,3 +1,8 @@+0.6.1+-----++* PR #57. mkUrl: Use urlBase for Dynamic case+ 0.6.0.2 -------
README.md view
@@ -1,6 +1,6 @@ # Servant Elm -[](https://travis-ci.org/mattjbray/servant-elm)+[](https://travis-ci.org/haskell-servant/servant-elm) Generate Elm functions to query your Servant API! @@ -133,8 +133,7 @@ ``` See [`examples`](examples) for a complete usage example, or take a look at-[mattjbray/servant-elm-example-app](https://github.com/mattjbray/servant-elm-example-app)-for an example project using this library.+[`mattjbray/servant-elm-example-app`](https://github.com/mattjbray/servant-elm-example-app) (elm 0.18) or [`haskell-servant/example-servant-elm`](https://github.com/haskell-servant/example-servant-elm) (elm 0.19) for an example project using this library. ## Development
servant-elm.cabal view
@@ -1,5 +1,5 @@ name: servant-elm-version: 0.6.0.2+version: 0.6.1 synopsis: Automatically derive Elm functions to query servant webservices. description: Please see README.md homepage: http://github.com/mattjbray/servant-elm#readme
src/Servant/Elm/Internal/Generate.hs view
@@ -551,7 +551,7 @@ where urlBuilder :: Doc urlBuilder = case urlPrefix opts of- Dynamic -> "Url.Builder.absolute" :: Doc+ Dynamic -> "Url.Builder.crossOrigin urlBase" :: Doc Static url -> "Url.Builder.crossOrigin" <+> dquotes (stext url) segmentToDoc :: F.Segment EType -> Doc
test/elm-sources/getOneWithDynamicUrlSource.elm view
@@ -19,7 +19,7 @@ , headers = [] , url =- Url.Builder.absolute+ Url.Builder.crossOrigin urlBase [ "one" ] params