versioning-servant-0.1.0.0: Servant combinators for the versioning library.

Safe HaskellNone
LanguageHaskell2010

Versioning.Servant

Synopsis

Documentation

type VersionedJSON = VersionedJSONFrom V0 Source #

Drop-in replacement for the JSON data-type for seamless integration with servant.

data VersionedJSONFrom (v :: V) Source #

Like VersionedJSON, with an additional type-parameter indicating the oldest version you want to be able to decode

Instances
Accept (VersionedJSONFrom from :: *) Source # 
Instance details

Defined in Versioning.Servant

(JsonDecodableToFrom from v a, ToJSON (a v)) => MimeRender (VersionedJSONFrom from :: *) (a v) Source # 
Instance details

Defined in Versioning.Servant

Methods

mimeRender :: Proxy (VersionedJSONFrom from) -> a v -> ByteString #

JsonDecodableToFrom from v a => MimeUnrender (VersionedJSONFrom from :: *) (a v) Source # 
Instance details

Defined in Versioning.Servant