0 | module Libraries.Text.PrettyPrint.Prettyprinter.Symbols
2 | import Libraries.Text.PrettyPrint.Prettyprinter.Doc
8 | squote = pretty0 '\''
12 | dquote = pretty0 '"'
16 | lparen = pretty0 '('
20 | rparen = pretty0 ')'
24 | langle = pretty0 '<'
28 | rangle = pretty0 '>'
32 | lbracket = pretty0 '['
36 | rbracket = pretty0 ']'
40 | lbrace = pretty0 '{'
44 | rbrace = pretty0 '}'
72 | backslash = pretty0 '\\'
76 | equals = pretty0 '='
83 | squotes : Doc ann -> Doc ann
84 | squotes = enclose squote squote
87 | dquotes : Doc ann -> Doc ann
88 | dquotes = enclose dquote dquote
91 | parens : Doc ann -> Doc ann
92 | parens = enclose lparen rparen
95 | parenthesise : Bool -> Doc ann -> Doc ann
96 | parenthesise b = if b then parens else id
99 | angles : Doc ann -> Doc ann
100 | angles = enclose langle rangle
103 | brackets : {default lbracket ldelim : Doc ann} ->
104 | {default rbracket rdelim : Doc ann} ->
106 | brackets {ldelim, rdelim} = enclose ldelim rdelim
109 | braces : Doc ann -> Doc ann
110 | braces = enclose lbrace rbrace