hindent-6.0.0: Extensible Haskell pretty printer
Safe HaskellSafe-Inferred
LanguageHaskell2010

HIndent.Pretty.Combinators.String

Description

Printer combinators related to print strings.

Synopsis

Documentation

string :: HasCallStack => String -> Printer () Source #

This function prints the given string.

The string must not include 'n's. Use newline to print them.

space :: Printer () Source #

Equivalent to 'string " "'.

newline :: Printer () Source #

This function prints a 'n'.

Always call this function to print it because printing it requires special treatment. Do not call string instead.

blankline :: Printer () Source #

Equivalent to 'newline >> newline'.

comma :: Printer () Source #

Equivalent to 'string ","'.

dot :: Printer () Source #

Equivalent to 'string "."'.