todos-0.5.1: Easy-to-use TODOs manager.

Todos.Formatters

Synopsis

Documentation

data OutItem Source

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

outItem :: OutItem -> IO ()Source

Print OutItem to console

startFormat :: Formatter cSource

Empty Formatter

newLine :: Formatter cSource

Output new line

class ConfigShow c s whereSource

Similar to Show, but output can depend on PrintConfig

Methods

configShow :: s -> Formatter cSource

class ConfigAdd c a whereSource

Methods

(<++>) :: Formatter c -> a -> Formatter cSource

Execute Formatter and a consequently

Instances