Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Provides a configurable way to format help options for textual presentation.
Synopsis
- data FormatConfig = FormatConfig {
- fmtMaxWidth :: Int
- defaultFormatConfig :: FormatConfig
- format :: FormatConfig -> String -> String
- formatKeywords :: FormatConfig -> [Keyword] -> String
Documentation
data FormatConfig Source #
User configuration for formatting.
Instances
Eq FormatConfig Source # | |
Defined in Text.LambdaOptions.Formatter (==) :: FormatConfig -> FormatConfig -> Bool # (/=) :: FormatConfig -> FormatConfig -> Bool # | |
Ord FormatConfig Source # | |
Defined in Text.LambdaOptions.Formatter compare :: FormatConfig -> FormatConfig -> Ordering # (<) :: FormatConfig -> FormatConfig -> Bool # (<=) :: FormatConfig -> FormatConfig -> Bool # (>) :: FormatConfig -> FormatConfig -> Bool # (>=) :: FormatConfig -> FormatConfig -> Bool # max :: FormatConfig -> FormatConfig -> FormatConfig # min :: FormatConfig -> FormatConfig -> FormatConfig # | |
Read FormatConfig Source # | |
Defined in Text.LambdaOptions.Formatter readsPrec :: Int -> ReadS FormatConfig # readList :: ReadS [FormatConfig] # | |
Show FormatConfig Source # | |
Defined in Text.LambdaOptions.Formatter showsPrec :: Int -> FormatConfig -> ShowS # show :: FormatConfig -> String # showList :: [FormatConfig] -> ShowS # |
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.