Safe Haskell | None |
---|---|
Language | Haskell2010 |
A DHALL
empty datatype with MimeRender
and MimeUnrender
instances for
Dhall's Interpret
and Inject
classes.
>>>
type Eg = Get '[DHALL] Integer
Note: reading and executing Dhall expressions from untrusted source is a security risk.
Synopsis
- type DHALL = DHALL' DefaultInterpretOptions
- data DHALL' opt
- class HasInterpretOptions opts
- data DefaultInterpretOptions
Documentation
type DHALL = DHALL' DefaultInterpretOptions Source #
Instances
Accept (DHALL' opts :: Type) Source # | |
Defined in Servant.Dhall | |
(ToDhall a, HasInterpretOptions opts) => MimeRender (DHALL' opts :: Type) a Source # | |
Defined in Servant.Dhall mimeRender :: Proxy (DHALL' opts) -> a -> ByteString # | |
(FromDhall a, HasInterpretOptions opts) => MimeUnrender (DHALL' opts :: Type) a Source # | |
Defined in Servant.Dhall mimeUnrender :: Proxy (DHALL' opts) -> ByteString -> Either String a # mimeUnrenderWithType :: Proxy (DHALL' opts) -> MediaType -> ByteString -> Either String a # |
class HasInterpretOptions opts Source #
interpretOptions
Instances
HasInterpretOptions DefaultInterpretOptions Source # | |
Defined in Servant.Dhall |