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
Standard versions
Encoding and decoding
encodeWithVersion :: StandardVersion -> Expr s Import -> Term Source #
Encode a Dhall expression using the specified Version
decodeWithVersion :: Term -> Either DecodingFailure (Expr s Import) Source #
Decode a Dhall expression
This auto-detects which standard version to decode based on the included standard 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 |