tagtree-0.1.0.1: Hierarchical Tags & Tag Trees
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.TagTree.PathTree

Synopsis

Documentation

mkTreeFromPaths :: Ord a => [[a]] -> Forest a Source #

annotatePathsWith :: (NonEmpty a -> ann) -> Tree a -> Tree (a, ann) Source #

foldSingleParentsWith :: (a -> a -> Maybe a) -> Tree a -> Tree a Source #

Fold nodes with one child using the given function

The function is called with the parent and the only child. If a Just value is returned, folding happens with that value, otherwise there is no effect.