Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
A
Leaf
is isomorphic to
Identity
, but we reimplement it here
to have domain specific type. The short constructor name is a bonus.
Lf a |
Instances
Node
is a product of two
f
. This way we can form a perfect binary tree.
Nd (f a) (f a) |
Instances
Direction in
Node
.
Instances
Functor Dir Source # | |
Foldable Dir Source # | |
Defined in Data.RAList.Tree.Internal fold :: Monoid m => Dir m -> m Source # foldMap :: Monoid m => (a -> m) -> Dir a -> m Source # foldMap' :: Monoid m => (a -> m) -> Dir a -> m Source # foldr :: (a -> b -> b) -> b -> Dir a -> b Source # foldr' :: (a -> b -> b) -> b -> Dir a -> b Source # foldl :: (b -> a -> b) -> b -> Dir a -> b Source # foldl' :: (b -> a -> b) -> b -> Dir a -> b Source # foldr1 :: (a -> a -> a) -> Dir a -> a Source # foldl1 :: (a -> a -> a) -> Dir a -> a Source # toList :: Dir a -> [a] Source # null :: Dir a -> Bool Source # length :: Dir a -> Int Source # elem :: Eq a => a -> Dir a -> Bool Source # maximum :: Ord a => Dir a -> a Source # minimum :: Ord a => Dir a -> a Source # |
|
Traversable Dir Source # | |
Eq a => Eq ( Dir a) Source # | |
Ord a => Ord ( Dir a) Source # | |
Defined in Data.RAList.Tree.Internal |
|
Show a => Show ( Dir a) Source # | |