Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data FormatConfig = FormatConfig {
- fmtMaxWidth :: Int
- defaultFormatConfig :: FormatConfig
- format :: FormatConfig -> String -> String
- formatKeywords :: FormatConfig -> [Keyword] -> String
Documentation
data FormatConfig Source #
User configuration for formatting.
defaultFormatConfig :: FormatConfig Source #
FormatConfig { fmtMaxWidth = 80 }
format :: FormatConfig -> String -> String Source #
Formats the given string with the given configuration.
formatKeywords :: FormatConfig -> [Keyword] -> String Source #
Formats the given keywords with the given configuration.