dhall-1.14.0: A configuration language guaranteed to terminate

Safe HaskellNone
LanguageHaskell98

Dhall.Pretty

Description

This module contains logic for pretty-printing expressions, including support for syntax highlighting

Synopsis

Documentation

data Ann Source #

Annotation type used to tag elements in a pretty-printed document for syntax highlighting purposes

Constructors

Keyword

Used for syntactic keywords

Syntax

Syntax punctuation such as commas, parenthesis, and braces

Label

Record labels

Literal

Literals such as integers and strings

Builtin

Builtin types and values

Operator

Operators

annToAnsiStyle :: Ann -> AnsiStyle Source #

Convert annotations to their corresponding color for syntax highlighting purposes

prettyExpr :: Pretty a => Expr s a -> Doc Ann Source #

Pretty print an expression