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

Todos.Tree

Synopsis

Documentation

delTag :: Data a => String -> [a] -> [a]Source

tagPred :: String -> TodoItem -> 𝔹Source

Check if item has given tag

statusPred :: String -> TodoItem -> 𝔹Source

Check if item has given status

grepPred :: String -> TodoItem -> 𝔹Source

Check if item's title matches to given regexp

descPred :: String -> TodoItem -> 𝔹Source

Check if item's description matches to given regexp

datePred :: Ord a => (t -> Maybe a) -> a -> a -> t -> 𝔹Source

idPred :: String -> TodoItem -> 𝔹Source

Check if item has given ID

forT :: (Monad m, Eq t) => [Tree t] -> (t -> m a) -> m [b]Source

For each item in the tree, execute given monadic action (this is similar to forM, but for trees instead of lists).

mapT :: (t -> t) -> [Tree t] -> [Tree t]Source

Similar to map, but for trees instead of lists.