|
Generics.MultiRec.Fold | Portability | non-portable | Stability | experimental | Maintainer | generics@haskell.org |
|
|
|
|
|
Description |
The definition of generic fold, unfold, paramorphisms. In addition,
some combinators that facilitate the construction of algebras.
There are several variants of fold in other modules that are probably
easier to use:
|
|
Synopsis |
|
|
|
|
Generic fold and unfold
|
|
type Algebra' s f r = forall ix. Ix s ix => s ix -> f s r ix -> r ix | Source |
|
|
|
|
type AlgebraF' s f g r = forall ix. Ix s ix => s ix -> f s r ix -> g (r ix) | Source |
|
|
|
|
|
|
|
|
type CoAlgebra' s f r = forall ix. Ix s ix => s ix -> r ix -> f s r ix | Source |
|
|
|
|
type CoAlgebraF' s f g r = forall ix. Ix s ix => s ix -> r ix -> g (f s r ix) | Source |
|
|
|
|
|
|
|
|
type ParaAlgebra' s f r = forall ix. Ix s ix => s ix -> f s r ix -> ix -> r ix | Source |
|
|
|
|
type ParaAlgebraF' s f g r = forall ix. Ix s ix => s ix -> f s r ix -> ix -> g (r ix) | Source |
|
|
|
|
|
|
|
|
Creating an algebra
|
|
type AlgPart a s r ix = a s r ix -> r ix | Source |
|
|
type :-> f g s r ix = f s r ix -> g s r ix | Source |
|
|
|
|
|
|
|
|
Produced by Haddock version 2.4.2 |