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

Safe HaskellNone
LanguageHaskell2010

Text.LambdaOptions.Formatter

Synopsis

Documentation

data FormatConfig

User configuration for formatting.

Constructors

FormatConfig 

Fields

fmtMaxWidth :: Int
 

defaultFormatConfig :: FormatConfig

FormatConfig { fmtMaxWidth = 80 }

format :: FormatConfig -> String -> String

Formats the given string with the given configuration.

formatKeywords :: FormatConfig -> [Keyword] -> String

Formats the given keywords with the given configuration.