packages feed

servant-elm 0.6.0.0 → 0.6.0.1

raw patch · 4 files changed

+12/−13 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,7 +1,12 @@+0.6.0.1+-------++* Bug: Replace special symbols in query string param name+ 0.6.0.0 ------- -* PR #49. Migrate to elm-bridge and http 2.0.0+* PR #49. Support Elm 0.19, migrate to elm-bridge, support http 2.0.0  0.5.0.0 -------
servant-elm.cabal view
@@ -1,5 +1,5 @@ name:                servant-elm-version:             0.6.0.0+version:             0.6.0.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
@@ -306,6 +306,7 @@      returnType :: Maybe Doc     returnType = do+      result <- fmap elmTypeRef $ request ^. F.reqReturnType       pure ("Cmd msg")  @@ -326,7 +327,9 @@ elmQueryArg :: F.QueryArg EType -> Doc elmQueryArg arg =   "query_" <>-  arg ^. F.queryArgName . F.argName . to (stext . F.unPathSegment)+  arg ^. F.queryArgName . F.argName . to (stext . replace . F.unPathSegment)+  where+    replace = T.replace "-" "_"   elmBodyArg :: Doc
test/CompileSpec.hs view
@@ -60,17 +60,8 @@         createDirectoryIfMissing True filePath         TIO.writeFile fileName out -        -- generateElmModuleWith-        --   defElmOptions-        --   ["Generated", "BooksApi"]-        --   defElmImports-        --   "."-        --   [ DefineElm (Proxy :: Proxy Book)-        --   , DefineElm (Proxy :: Proxy NoContent)-        --   ]-        --   (Proxy :: Proxy TestApi)         -- -- Useful for locally checking out sources in your tmp dir-        callCommand "cp -r . /home/kb/tmp/servelmtest"+        -- callCommand "cp -r . /home/kb/tmp/servelmtest"         runProcess_ "elm make Generated/BooksApi.elm --output api.js"