Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Printer operators for wrapping texts with a prefix and a suffix.
Synopsis
- parens :: Printer a -> Printer a
- parensIfSymbol :: OccName -> Printer a -> Printer a
- bananaBrackets :: Printer a -> Printer a
- braces :: Printer a -> Printer a
- doubleQuotes :: Printer a -> Printer a
- brackets :: Printer a -> Printer a
- typedBrackets :: Printer a -> Printer a
- backticks :: Printer a -> Printer a
- backticksIfNotSymbol :: OccName -> Printer a -> Printer a
- wrapWithBars :: Printer a -> Printer a
- promotedListBrackets :: Printer a -> Printer a
- promotedTupleParens :: Printer a -> Printer a
- unboxedParens :: Printer a -> Printer a
Documentation
parensIfSymbol :: OccName -> Printer a -> Printer a Source #
This function wraps the printer with parentheses if the identifier contains only symbols.
bananaBrackets :: Printer a -> Printer a Source #
Wraps with "(|" and "|)"
doubleQuotes :: Printer a -> Printer a Source #
Wraps with double quotes.
typedBrackets :: Printer a -> Printer a Source #
Wraps with [||
and ||]
.
backticksIfNotSymbol :: OccName -> Printer a -> Printer a Source #
This function wraps the printer with backticks if the identifier contains at least one non-symbol character.
wrapWithBars :: Printer a -> Printer a Source #
This function wraps the printer with bars (|).
promotedListBrackets :: Printer a -> Printer a Source #
This function wraps the printer with '[
and ]
for a promoted
list.
promotedTupleParens :: Printer a -> Printer a Source #
This function wraps the printer with '(
and )
for a promoted
tuple.
unboxedParens :: Printer a -> Printer a Source #
Wraps with (#
and #)
.