servant-yaml-0.1.0.1: Servant support for yaml

LicenseBSD-3-Clause
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellNone
LanguageHaskell2010

Servant.Yaml

Description

An YAML empty data type with MimeRender instances for yaml / aeson's ToJSON class and Value datatype. You should only need to import this module for it's instances and the YAML datatype.:

>>> type YamlGET a = Get '[YAML] a

Will then check that a has a ToJSON instance (Value has).

Documentation

data YAML Source #

Instances
Accept YAML Source #
application/x-yaml
Instance details

Defined in Servant.Yaml

ToJSON a => MimeRender YAML a Source #

encode

Instance details

Defined in Servant.Yaml

Methods

mimeRender :: Proxy YAML -> a -> ByteString #

FromJSON a => MimeUnrender YAML a Source #

decodeEither

Instance details

Defined in Servant.Yaml