hindent-3.2: Extensible Haskell pretty printer

Safe HaskellNone
LanguageHaskell98

HIndent

Contents

Description

Haskell indenter.

Synopsis

Formatting functions.

reformat :: Style -> Text -> Either String Builder Source

Format the given source.

prettyPrint :: Style -> Printer () -> Builder Source

Pretty print the given printable thing.

parseMode :: ParseMode Source

Parse mode, includes all extensions, doesn't assume any fixities.

Style

styles :: [Style] Source

Styles list, useful for programmatically choosing.

chrisDone :: Style Source

The printer style.

johanTibell :: Style Source

The printer style.

fundamental :: Style Source

The printer style.

Testing

test :: Style -> Text -> IO () Source

Test with the given style, prints to stdout.

testAll :: Text -> IO () Source

Test with the given style, prints to stdout.