License | BSD-3-Clause |
---|---|
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
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
Instances
Accept YAML Source # | application/x-yaml |
Defined in Servant.Yaml | |
ToJSON a => MimeRender YAML a Source # | |
Defined in Servant.Yaml mimeRender :: Proxy YAML -> a -> ByteString # | |
FromJSON a => MimeUnrender YAML a Source # |
|
Defined in Servant.Yaml mimeUnrender :: Proxy YAML -> ByteString -> Either String a # mimeUnrenderWithType :: Proxy YAML -> MediaType -> ByteString -> Either String a # |