servant-rawm 0.3.1.0 → 0.3.2.0
raw patch · 4 files changed
+21/−7 lines, 4 files
Files
- CHANGELOG.md +12/−5
- servant-rawm.cabal +1/−1
- src/Servant/RawM/Internal/API.hs +7/−0
- stack.yaml +1/−1
CHANGELOG.md view
@@ -1,14 +1,21 @@ +## 0.3.2.0++* Add an instance for+ [`HasLink`](http://hackage.haskell.org/package/servant-0.16.2/docs/Servant-Links.html#t:HasLink)+ to `RawM` [#12](https://github.com/cdepillabout/servant-rawm/pull/12).+ Thanks [@amesgen](https://github.com/amesgen)!+ ## 0.3.1.0 -* Update to work with servant-0.16- [#10](https://github.com/cdepillabout/servant-rawm/pull/10). Thanks- [@vlatkoB](https://github.com/vlatkoB)!+* Update to work with servant-0.16+ [#10](https://github.com/cdepillabout/servant-rawm/pull/10). Thanks+ [@vlatkoB](https://github.com/vlatkoB)! ## 0.3.0.0 -* Update to work with the latest version of Servant (0.14) and remove support from older versions of Servant.-* Remove support from Stackage LTS versions older than 12.+* Update to work with the latest version of Servant (0.14) and remove support from older versions of Servant.+* Remove support from Stackage LTS versions older than 12. ## 0.2.0.2
servant-rawm.cabal view
@@ -1,5 +1,5 @@ name: servant-rawm-version: 0.3.1.0+version: 0.3.2.0 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
src/Servant/RawM/Internal/API.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE TypeFamilies #-}+ {- | Module : Servant.RawM.Internal.API @@ -11,6 +13,7 @@ module Servant.RawM.Internal.API where import Data.Typeable (Typeable)+import Servant (HasLink, MkLink, toLink) -- | Specialization of 'RawM'' to 'FileServer'. This can be used if you are -- using 'Servant.RawM.serveDirectoryWebApp',@@ -30,6 +33,10 @@ -- 'FileServer'@. This allows the end-user to easily create a -- 'Servant.Docs.HasDocs' instance for a custom 'Network.Wai.Application'. data RawM' serverType deriving Typeable++instance HasLink (RawM' st) where+ type MkLink (RawM' st) a = a+ toLink toA _ = toA -- | Used by 'RawM' as a phantom type. data FileServer deriving Typeable
stack.yaml view
@@ -3,7 +3,7 @@ # Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2) # nightly is used for the servant-0.16 dependencies. When lts-14 is released, this can be updated to # use that.-resolver: nightly-2019-03-27+resolver: lts-14.3 # Local packages, usually specified by relative directory name packages: