dhall-1.20.1: 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

Standard versions

data StandardVersion Source #

Supported version strings

Constructors

V_5_0_0

Version "5.0.0"

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