hindent-2.1: Extensible Haskell pretty printer

Safe HaskellNone

HIndent

Contents

Description

Haskell indenter.

Synopsis

Formatting functions.

reformat :: Config -> Style -> Text -> Either String BuilderSource

Format the given source.

prettyPrint :: Config -> Style -> Printer () -> BuilderSource

Pretty print the given printable thing.

parseMode :: ParseModeSource

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

Style

styles :: [Style]Source

Styles list, useful for programmatically choosing.

chrisDone :: StyleSource

The printer style.

michaelSnoyman :: StyleSource

The printer style.

johanTibell :: StyleSource

The printer style.

fundamental :: StyleSource

The printer style.

Testing

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

Test with the given style, prints to stdout.