Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
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 #
Instances
Show FormatOpts Source # | |
Defined in Data.Gibberish.Formatting showsPrec :: Int -> FormatOpts -> ShowS # show :: FormatOpts -> String # showList :: [FormatOpts] -> ShowS # | |
Eq FormatOpts Source # | |
Defined in Data.Gibberish.Formatting (==) :: FormatOpts -> FormatOpts -> Bool # (/=) :: FormatOpts -> FormatOpts -> Bool # |
Instances
Instances
Enum MaxHeight Source # | |
Defined in Data.Gibberish.Formatting 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 | |
Real MaxHeight Source # | |
Defined in Data.Gibberish.Formatting toRational :: MaxHeight -> Rational # | |
Show MaxHeight Source # | |
Eq MaxHeight Source # | |
Ord MaxHeight Source # | |
Defined in Data.Gibberish.Formatting |
newtype ExactNumberWords Source #
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