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

HIndent

Description

Haskell indenter.

Synopsis

Formatting functions.

reformat :: Config -> Maybe [Extension] -> Maybe FilePath -> ByteString -> Either String Builder Source #

Format the given source.

prettyPrint :: Config -> HsModule -> Builder Source #

Print the module.

Testing

testAst :: ByteString -> Either String HsModule Source #

Generate an AST from the given module for debugging.