Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- cataM :: (Monad m, Traversable (Base t), Recursive t) => (Base t a -> m a) -> t -> m a
- anaM :: (Monad m, Traversable (Base t), Corecursive t) => (a -> m (Base t a)) -> a -> m t
- paraM :: (Monad m, Traversable (Base t), Recursive t) => (Base t (t, a) -> m a) -> t -> m a
- apoM :: (Monad m, Traversable (Base t), Corecursive t) => (a -> m (Base t (Either t a))) -> a -> m t
- histoM :: (Monad m, Traversable (Base t), Recursive t) => (Base t (Cofree (Base t) a) -> m a) -> t -> m a
- futuM :: (Monad m, Traversable (Base t), Corecursive t) => (a -> m (Base t (Free (Base t) a))) -> a -> m t
- histoM' :: (Monad m, Traversable (Base t), Recursive t) => (Base t (Cofree (Base t) a) -> m a) -> t -> m a
- futuM' :: (Monad m, Traversable (Base t), Corecursive t) => (a -> m (Base t (Free (Base t) a))) -> a -> m t
- zygoM :: (Monad m, Traversable (Base t), Recursive t) => (Base t a -> m a) -> (Base t (a, b) -> m b) -> t -> m b
- cozygoM :: (Monad m, Traversable (Base t), Corecursive t) => (a -> m (Base t a)) -> (b -> m (Base t (Either a b))) -> b -> m t
- hyloM :: (Monad m, Traversable t) => (t b -> m b) -> (a -> m (t a)) -> a -> m b
Documentation
:: (Monad m, Traversable (Base t), Recursive t) | |
=> (Base t a -> m a) | algebra |
-> t | |
-> m a |
catamorphism
:: (Monad m, Traversable (Base t), Corecursive t) | |
=> (a -> m (Base t a)) | coalgebra |
-> a | |
-> m t |
anamorphism
:: (Monad m, Traversable (Base t), Recursive t) | |
=> (Base t (t, a) -> m a) | algebra |
-> t | |
-> m a |
paramorphism
:: (Monad m, Traversable (Base t), Corecursive t) | |
=> (a -> m (Base t (Either t a))) | coalgebra |
-> a | |
-> m t |
apomorphism
:: (Monad m, Traversable (Base t), Recursive t) | |
=> (Base t (Cofree (Base t) a) -> m a) | algebra |
-> t | |
-> m a |
histomorphism on recursion variant
:: (Monad m, Traversable (Base t), Corecursive t) | |
=> (a -> m (Base t (Free (Base t) a))) | coalgebra |
-> a | |
-> m t |
futumorphism on recursion variant
histoM' :: (Monad m, Traversable (Base t), Recursive t) => (Base t (Cofree (Base t) a) -> m a) -> t -> m a Source #
histomorphism on catamorphism variant
:: (Monad m, Traversable (Base t), Corecursive t) | |
=> (a -> m (Base t (Free (Base t) a))) | coalgebra |
-> a | |
-> m t |
futumorphism on anamorphism variant
:: (Monad m, Traversable (Base t), Recursive t) | |
=> (Base t a -> m a) | algebra for fst |
-> (Base t (a, b) -> m b) | algebra for snd from product |
-> t | |
-> m b |
zygomorphism
:: (Monad m, Traversable (Base t), Corecursive t) | |
=> (a -> m (Base t a)) | coalgebra for fst |
-> (b -> m (Base t (Either a b))) | coalgebra for snd to coproduct |
-> b | |
-> m t |
cozygomorphism
:: (Monad m, Traversable t) | |
=> (t b -> m b) | algebra |
-> (a -> m (t a)) | coalgebra |
-> a | |
-> m b |
hylomorphism