| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Servant.Dhall
Description
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 Methods mimeRender :: Proxy (DHALL' opts) -> a -> ByteString # | |
| (FromDhall a, HasInterpretOptions opts) => MimeUnrender (DHALL' opts :: Type) a Source # | |
Defined in Servant.Dhall Methods mimeUnrender :: Proxy (DHALL' opts) -> ByteString -> Either String a # mimeUnrenderWithType :: Proxy (DHALL' opts) -> MediaType -> ByteString -> Either String a # | |
class HasInterpretOptions opts Source #
Minimal complete definition
interpretOptions
Instances
| HasInterpretOptions DefaultInterpretOptions Source # | |
Defined in Servant.Dhall Methods interpretOptions :: Proxy DefaultInterpretOptions -> InterpretOptions | |
data DefaultInterpretOptions Source #
Instances
| HasInterpretOptions DefaultInterpretOptions Source # | |
Defined in Servant.Dhall Methods interpretOptions :: Proxy DefaultInterpretOptions -> InterpretOptions | |