servant-rawm 0.2.0.1 → 0.2.0.2
raw patch · 5 files changed
+8/−6 lines, 5 files
Files
- CHANGELOG.md +4/−0
- example/Client.hs +0/−4
- example/files/bar.txt +1/−0
- servant-rawm.cabal +2/−1
- src/Servant/RawM.hs +1/−1
CHANGELOG.md view
@@ -1,4 +1,8 @@ +## 0.2.0.2++* Add missing test file to extra-source-files in the cabal file.+ ## 0.2.0.1 * Add tests and more documentation.
example/Client.hs view
@@ -22,10 +22,6 @@ -- Clients generated by servant-client -- ----------------------------------------- --- We generate the client functions just like normal. Note that when we use--- 'Throws' or 'NoThrow', the client functions get generated with the--- 'Envelope' type.- otherEndpoint1 :: ClientM Int getFile' :: Method -> (Req -> Req) -> ClientM (Int, ByteString, MediaType, [Header], Response ByteString) otherEndpoint2 :: ClientM Int
+ example/files/bar.txt view
@@ -0,0 +1,1 @@+This is bar.txt.
servant-rawm.cabal view
@@ -1,5 +1,5 @@ name: servant-rawm-version: 0.2.0.1+version: 0.2.0.2 synopsis: Embed a raw 'Application' in a Servant API description: Please see <https://github.com/cdepillabout/servant-rawm#readme README.md>. homepage: https://github.com/cdepillabout/servant-rawm@@ -12,6 +12,7 @@ build-type: Simple extra-source-files: CHANGELOG.md , README.md+ , example/files/bar.txt , example/files/foo.txt , stack.yaml cabal-version: >=1.10
src/Servant/RawM.hs view
@@ -48,7 +48,7 @@ @ type Api\' = \"serve-directory-example\" :> 'Raw' - serverRoot\' :: 'Server.ServerT' Api ('Control.Monad.Reader.ReaderT' 'FilePath' 'IO')+ serverRoot\' :: 'Server.ServerT' Api\' ('Control.Monad.Reader.ReaderT' 'FilePath' 'IO') serverRoot\' = rawEndpoint\' rawEndpoint\' :: 'Data.Tagged.Tagged' ('Control.Monad.Reader.ReaderT' 'FilePath' 'IO') 'Network.Wai.Application'