Safe Haskell | None |
---|---|
Language | Haskell98 |
Haskell indenter.
Synopsis
- reformat :: Style -> Language -> [Extension] -> Maybe FilePath -> ByteString -> Either String ByteString
- prettyPrint :: Style -> Module SrcSpanInfo -> [Comment] -> Either a ByteString
- data Style = Style {
- styleName :: !Text
- styleAuthor :: !Text
- styleDescription :: !Text
- styleInitialState :: !FlexConfig
- styles :: [Style]
- defaultExtensions :: [Extension]
Formatting functions.
reformat :: Style -> Language -> [Extension] -> Maybe FilePath -> ByteString -> Either String ByteString Source #
Format the given source.
prettyPrint :: Style -> Module SrcSpanInfo -> [Comment] -> Either a ByteString Source #
Print the module.
Style
A printer style.
Style | |
|
Testing
defaultExtensions :: [Extension] Source #
Default extensions.