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

Safe HaskellNone

Todos.Tree

Synopsis

Documentation

mapTags :: ([String] -> [String]) -> [Todo] -> [Todo]Source

flattern :: [Todo] -> [Todo]Source

Flattern the tree

tagPred :: String -> TodoItem -> 𝔹Source

Check if item has given tag | 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

hasCycles :: Hashable a => [Tree a] -> 𝔹Source

Check if trees contain cycles

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.