| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Text.Layout.Table.Cell.Formatted
Description
Documentation
Instances
plain :: a -> Formatted a Source #
Create a value from content that is kept plain without any formatting.
Arguments
| :: String | Prefix text directives for formatting. |
| -> Formatted a | The content to be formatted. |
| -> String | Suffix text directives for formatting. |
| -> Formatted a |
Create a formatted value with formatting directives that are applied to the whole value. The actual formatting has to be done by the backend.
Arguments
| :: (String -> String) | Function to operate on prefix text directives. |
| -> (String -> String) | Function to operate on suffix text directives. |
| -> Formatted a | The formatted value to operate on. |
| -> Formatted a |
Map over the formatting directives of a formatted value.
Arguments
| :: b | Value of |
| -> ([b] -> b) | Function for operating over |
| -> (a -> b) | Function for operating over |
| -> (String -> b -> String -> b) | Function for operating over |
| -> Formatted a | |
| -> b |
Process a formatted value to produce an arbitrary value.
This is the catamorphism for Formatted.