Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Safe functions for datatype introspection.
Synopsis
- showsTree :: (a -> ShowS) -> Radix1Tree a -> ShowS
- data Validity
- data Reason
- validate :: Radix1Tree a -> Validity
Show
showsTree :: (a -> ShowS) -> Radix1Tree a -> ShowS Source #
\(\mathcal{O}(n)\). Shows the internal structure of the tree.
Validate
Whether the tree is well-formed.
Reason for why the tree is considered malformed.
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. |
EmptyByteArray | Empty |
UncompressedTip |
|
validate :: Radix1Tree a -> Validity Source #
\(\mathcal{O}(n)\). Checks whether the tree is well-formed.