lambda-options-0.9.0.0: A modern command-line parser for Haskell.

Safe HaskellNone
LanguageHaskell2010

Text.LambdaOptions.Formatter

Synopsis

Documentation

data FormatConfig Source

User configuration for formatting.

Constructors

FormatConfig 

Fields

fmtMaxWidth :: Int
 

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.