Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains logic for converting Dhall expressions to and from CBOR expressions which can in turn be converted to and from a binary representation
Synopsis
- data ProtocolVersion = V_1_0
- defaultProtocolVersion :: ProtocolVersion
- parseProtocolVersion :: Parser ProtocolVersion
- encode :: ProtocolVersion -> Expr s Import -> Term
- decode :: Term -> Either DecodingFailure (Expr s Import)
- data DecodingFailure
Protocol versions
Encoding and decoding
encode :: ProtocolVersion -> Expr s Import -> Term Source #
Encode a Dhall expression using the specified ProtocolVersion
decode :: Term -> Either DecodingFailure (Expr s Import) Source #
Decode a Dhall expression
This auto-detects whiich protocol version to decode based on the included protocol version string in the decoded expression
Exceptions
data DecodingFailure Source #
Instances
Eq DecodingFailure Source # | |
Defined in Dhall.Binary (==) :: DecodingFailure -> DecodingFailure -> Bool # (/=) :: DecodingFailure -> DecodingFailure -> Bool # | |
Show DecodingFailure Source # | |
Defined in Dhall.Binary showsPrec :: Int -> DecodingFailure -> ShowS # show :: DecodingFailure -> String # showList :: [DecodingFailure] -> ShowS # | |
Exception DecodingFailure Source # | |
Defined in Dhall.Binary |