Copyright | (c) 2021-2022 Mirko Westermeier |
---|---|
License | MIT |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module is a collection of all tree modifications used in
buildTree
(and loadHTMell
). They are applied
in a chain of processTree
calls and do not need to be used
outside of HTMell. For details on the somewhat strange signatures, refer
to processTree
.
Content of inner nodes
While a leaf of the content tree gets its content from a file, it is not
immediately clear for (inner) directories that they can also contain
content. "index"
children to the rescue!
Caveat: Don't use directories named "index"
!
removeIndex :: String -> Maybe c -> [HTree c] -> Tree (String, Maybe c) #
Removes all children
named "index"
.