- data OutItem
- type Formatter c = Reader (PrintConfig c) [OutItem]
- outItem :: OutItem -> IO ()
- startFormat :: Formatter c
- newLine :: Formatter c
- class ConfigShow c s where
- configShow :: s -> Formatter c
- class ConfigAdd c a where
Documentation
Item which could be printed to the console
type Formatter c = Reader (PrintConfig c) [OutItem]Source
Produce a list of OutItem's depending on PrintConfig
startFormat :: Formatter cSource
Empty Formatter
class ConfigShow c s whereSource
Similar to Show, but output can depend on PrintConfig
configShow :: s -> Formatter cSource
RuntimeConfig (PrintConfig c) => ConfigShow c TodoItem | |
ConfigShow c String | |
ConfigShow c (Formatter c) |