Safe Haskell | Safe |
---|---|
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
Functor Leaf Source # | |
Foldable Leaf Source # | |
Defined in Data.RAList.Tree.Internal fold :: Monoid m => Leaf m -> m # foldMap :: Monoid m => (a -> m) -> Leaf a -> m # foldr :: (a -> b -> b) -> b -> Leaf a -> b # foldr' :: (a -> b -> b) -> b -> Leaf a -> b # foldl :: (b -> a -> b) -> b -> Leaf a -> b # foldl' :: (b -> a -> b) -> b -> Leaf a -> b # foldr1 :: (a -> a -> a) -> Leaf a -> a # foldl1 :: (a -> a -> a) -> Leaf a -> a # elem :: Eq a => a -> Leaf a -> Bool # maximum :: Ord a => Leaf a -> a # | |
Traversable Leaf Source # | |
Distributive Leaf Source # | |
Representable Leaf Source # | |
Traversable1 Leaf Source # | |
Foldable1 Leaf Source # | |
Eq a => Eq (Leaf a) Source # | |
Ord a => Ord (Leaf a) Source # | |
Show a => Show (Leaf a) Source # | |
NFData a => NFData (Leaf a) Source # | |
Defined in Data.RAList.Tree.Internal | |
Hashable a => Hashable (Leaf a) Source # | |
Defined in Data.RAList.Tree.Internal | |
type Rep Leaf Source # | |
Defined in Data.RAList.Tree.Internal |
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 # foldMap :: Monoid m => (a -> m) -> Dir a -> m # foldr :: (a -> b -> b) -> b -> Dir a -> b # foldr' :: (a -> b -> b) -> b -> Dir a -> b # foldl :: (b -> a -> b) -> b -> Dir a -> b # foldl' :: (b -> a -> b) -> b -> Dir a -> b # foldr1 :: (a -> a -> a) -> Dir a -> a # foldl1 :: (a -> a -> a) -> Dir a -> a # elem :: Eq a => a -> Dir a -> Bool # maximum :: Ord a => Dir a -> a # | |
Traversable Dir Source # | |
Eq a => Eq (Dir a) Source # | |
Ord a => Ord (Dir a) Source # | |
Show a => Show (Dir a) Source # | |