Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data.Patricia.Word.Strict.Debug
Description
Safe functions for datatype introspection.
Show
showsTree :: (a -> ShowS) -> Patricia a -> ShowS Source #
O(n). Shows the internal structure of the tree.
Validate
Whether the tree is well-formed.
Reason for why the tree is considered malformed.
Constructors
ZeroPrefix | Prefix is |
PrefixBelow Prefix Prefix | Prefix below diverges from the prefix above. |
KeyBelow Prefix Key | Key diverges the prefix above. |
MalformedBin Prefix | One of the branches is empty. |