dhall-1.17.0: A configuration language guaranteed to terminate

Safe HaskellNone
LanguageHaskell2010

Dhall.Binary

Contents

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

Protocol versions

data ProtocolVersion Source #

Supported protocol version strings

Constructors

V_1_0

Protocol version string "1.0"

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