| Safe Haskell | None |
|---|
Todos.Formatters
- 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
Constructors
| OutString String | |
| OutSetColor ColorIntensity Color | |
| SetBold | |
| ResetAll |
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
Methods
configShow :: s -> Formatter cSource
Instances
| RuntimeConfig (PrintConfig c) => ConfigShow c TodoItem | |
| ConfigShow c String | |
| ConfigShow c (Formatter c) |