We’re happy to announce the minor release of servant-0.14.1
.
Merge in (and slightly refactor)
servant-generic
(by Patrick Chilton) intoservant
(Servant.API.Generic
),servant-client-code
(Servant.Client.Generic
) andservant-server
(Servant.Server.Generic
).data Routes route = Routes { _get :: route :- Capture "id" Int :> Get '[JSON] String , _put :: route :- ReqBody '[JSON] Int :> Put '[JSON] Bool } deriving (Generic) record :: Routes AsServer record = Routes { _get = return . show , _put = return . odd } app :: Application app = genericServe record
See the new cookbook recipe for an example.
Deprecate
Servant.Utils.Links
, useServant.Links
. TheServant.Utils.Links
module will be removed in an upcoming major release.servant-server Deprecate
Servant.Utils.StaticUtils
, useServant.Server.StaticUtils
. TheServant.Utils.StaticUtils
module will be removed in an upcoming major release.
Posted on July 5, 2018
by The servant team