bricks-0.0.0.2: Bricks is a lazy functional language based on Nix.

Safe HaskellNone
LanguageHaskell2010

Bricks.Rendering

Contents

Synopsis

Render

type Render a = a -> Text Source #

Expressions

render'expression :: Render Expression Source #

Render an expression.

render'expression'listContext :: Render Expression Source #

Render an expression in a list context.

render'expression'dotLeftContext :: Render Expression Source #

Render an expression in the context of the left-hand side of a Dot.

render'expression'applyLeftContext :: Render Expression Source #

Render an expression in the context of the left-hand side of an Apply.

render'expression'applyRightContext :: Render Expression Source #

Render an expression in the context of the right-hand side of an Apply.

Strings

str'escape :: Text -> Text Source #

Insert escape sequences for rendering normal double-quoted (") strings.

render'strUnquoted :: Render Str'Unquoted Source #

Render an unquoted string in unquoted form.

render'strStatic'unquotedIfPossible :: Render Str'Static Source #

Render a static string, in unquoted form if possible.

render'strStatic'quoted :: Render Str'Static Source #

Render a static string, in quoted form.

render'strDynamic'unquotedIfPossible :: Render Str'Dynamic Source #

Render a dynamic string, in unquoted form if possible.

render'strDynamic'quoted :: Render Str'Dynamic Source #

Render a dynamic string, in quoted form.

render'inStr'1 :: Render InStr'1 Source #

Render one line of an indented string (InStr).

Lists

render'list :: Render List Source #

Render a list literal ([ ... ]).

Dicts

render'dict :: Render Dict Source #

Render a dict literal ({ ... }).

render'dictBinding :: Render DictBinding Source #

Render a binding within a Dict, without the trailing semicolon.

Dict lookup

render'dot :: Render Dot Source #

Render a dot expression (a.b).

Lambdas

render'lambda :: Render Lambda Source #

Render a lambda expression (x: y).

Function parameters

render'param :: Render Param Source #

Render a lambda parameter: everything from the beginning of a lambda, up to but not including the : that separates the head from the body of the lambda.

render'dictPattern :: Render DictPattern Source #

Render a dict pattern ({ a, b ? c, ... }).

Function application

render'apply :: Render Apply Source #

Render a function application expression (f x).

let

render'let :: Render Let Source #

Render a let-in expression.

render'letBinding :: Render LetBinding Source #

Render a binding within a Let, without the trailing semicolon.

with

render'with :: Render With Source #

Render a with expression.

inherit