servant-dhall-0.3: Servant Dhall content-type

Safe HaskellNone
LanguageHaskell2010

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

Documentation

data DHALL' opt Source #

Instances
Accept (DHALL' opts :: Type) Source # 
Instance details

Defined in Servant.Dhall

(ToDhall a, HasInterpretOptions opts) => MimeRender (DHALL' opts :: Type) a Source # 
Instance details

Defined in Servant.Dhall

Methods

mimeRender :: Proxy (DHALL' opts) -> a -> ByteString #

(FromDhall a, HasInterpretOptions opts) => MimeUnrender (DHALL' opts :: Type) a Source # 
Instance details

Defined in Servant.Dhall

class HasInterpretOptions opts Source #

Minimal complete definition

interpretOptions