pb-next-0.1.0.0: Utility CLI for working with protobuf files

Safe HaskellSafe
LanguageHaskell2010

Tree

Documentation

data Tree l i Source #

Constructors

Leaf l 
Internal [Tree l i] i 

Instances

Foldable (Tree leaf) Source # 

Methods

fold :: Monoid m => Tree leaf m -> m #

foldMap :: Monoid m => (a -> m) -> Tree leaf a -> m #

foldr :: (a -> b -> b) -> b -> Tree leaf a -> b #

foldr' :: (a -> b -> b) -> b -> Tree leaf a -> b #

foldl :: (b -> a -> b) -> b -> Tree leaf a -> b #

foldl' :: (b -> a -> b) -> b -> Tree leaf a -> b #

foldr1 :: (a -> a -> a) -> Tree leaf a -> a #

foldl1 :: (a -> a -> a) -> Tree leaf a -> a #

toList :: Tree leaf a -> [a] #

null :: Tree leaf a -> Bool #

length :: Tree leaf a -> Int #

elem :: Eq a => a -> Tree leaf a -> Bool #

maximum :: Ord a => Tree leaf a -> a #

minimum :: Ord a => Tree leaf a -> a #

sum :: Num a => Tree leaf a -> a #

product :: Num a => Tree leaf a -> a #

(Eq i, Eq l) => Eq (Tree l i) Source # 

Methods

(==) :: Tree l i -> Tree l i -> Bool #

(/=) :: Tree l i -> Tree l i -> Bool #

(Show i, Show l) => Show (Tree l i) Source # 

Methods

showsPrec :: Int -> Tree l i -> ShowS #

show :: Tree l i -> String #

showList :: [Tree l i] -> ShowS #