dhall-1.41.2: A configuration language guaranteed to terminate
Safe HaskellSafe-Inferred
LanguageHaskell2010

Dhall.Binary

Description

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

Encoding and decoding

encodeExpression :: Serialise (Expr Void a) => Expr Void a -> ByteString Source #

Encode a Dhall expression as a CBOR-encoded ByteString

decodeExpression :: Serialise (Expr s a) => ByteString -> Either DecodingFailure (Expr s a) Source #

Decode a Dhall expression from a CBOR Term

Exceptions

newtype DecodingFailure Source #

This indicates that a given CBOR-encoded ByteString did not correspond to a valid Dhall expression

Orphan instances

Serialise (Expr Void Void) Source # 
Instance details

Methods

encode :: Expr Void Void -> Encoding

decode :: Decoder s (Expr Void Void)

encodeList :: [Expr Void Void] -> Encoding

decodeList :: Decoder s [Expr Void Void]

Serialise (Expr Void Import) Source # 
Instance details

Methods

encode :: Expr Void Import -> Encoding

decode :: Decoder s (Expr Void Import)

encodeList :: [Expr Void Import] -> Encoding

decodeList :: Decoder s [Expr Void Import]