0 | module Text.PrettyPrint.Prettyprinter.Symbols
2 | import Text.PrettyPrint.Prettyprinter.Doc
32 | lbracket = pretty '['
36 | rbracket = pretty ']'
72 | backslash = pretty '\\'
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