| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Data.Gibberish.Formatting
Synopsis
- data FormatOpts = FormatOpts {}
- newtype MaxLen = MaxLen {}
- newtype MaxHeight = MaxHeight {
- unMaxHeight :: Int
- newtype Separator = Separator {
- unSeparator :: Text
- newtype ExactNumberWords = ExactNumberWords {
- unExactWords :: Int
- formatWords :: FormatOpts -> [Word] -> Text
- formatLine :: FormatOpts -> [Word] -> FormatLine
Documentation
data FormatOpts Source #
Constructors
| FormatOpts | |
Fields | |
Instances
| Show FormatOpts Source # | |
Defined in Data.Gibberish.Formatting Methods showsPrec :: Int -> FormatOpts -> ShowS # show :: FormatOpts -> String # showList :: [FormatOpts] -> ShowS # | |
| Eq FormatOpts Source # | |
Defined in Data.Gibberish.Formatting | |
Instances
Constructors
| MaxHeight | |
Fields
| |
Instances
| Enum MaxHeight Source # | |
Defined in Data.Gibberish.Formatting Methods succ :: MaxHeight -> MaxHeight # pred :: MaxHeight -> MaxHeight # fromEnum :: MaxHeight -> Int # enumFrom :: MaxHeight -> [MaxHeight] # enumFromThen :: MaxHeight -> MaxHeight -> [MaxHeight] # enumFromTo :: MaxHeight -> MaxHeight -> [MaxHeight] # enumFromThenTo :: MaxHeight -> MaxHeight -> MaxHeight -> [MaxHeight] # | |
| Num MaxHeight Source # | |
Defined in Data.Gibberish.Formatting | |
| Integral MaxHeight Source # | |
Defined in Data.Gibberish.Formatting Methods quot :: MaxHeight -> MaxHeight -> MaxHeight # rem :: MaxHeight -> MaxHeight -> MaxHeight # div :: MaxHeight -> MaxHeight -> MaxHeight # mod :: MaxHeight -> MaxHeight -> MaxHeight # quotRem :: MaxHeight -> MaxHeight -> (MaxHeight, MaxHeight) # divMod :: MaxHeight -> MaxHeight -> (MaxHeight, MaxHeight) # | |
| Real MaxHeight Source # | |
Defined in Data.Gibberish.Formatting Methods toRational :: MaxHeight -> Rational # | |
| Show MaxHeight Source # | |
| Eq MaxHeight Source # | |
| Ord MaxHeight Source # | |
Constructors
| Separator | |
Fields
| |
newtype ExactNumberWords Source #
Constructors
| ExactNumberWords | |
Fields
| |
Instances
formatWords :: FormatOpts -> [Word] -> Text Source #
Format a list of words to a text blob
formatLine :: FormatOpts -> [Word] -> FormatLine Source #
Format a single line of words, up to maxLen characters