|
| Generics.Regular.Functions.Fold | | Portability | non-portable | | Stability | experimental | | Maintainer | generics@haskell.org |
|
|
|
|
|
| Description |
| Summary: Generic folding and unfolding.
|
|
| Synopsis |
|
|
|
|
| Generic folding
|
|
| type family Alg f r :: * | Source |
|
|
|
|
|
| The class fold explains how to convert an algebra
Alg into a function from functor to result.
| | | Methods | | | Instances | |
|
|
|
| Fold with convenient algebras.
|
|
| Generic unfolding
|
|
| type family CoAlg f s :: * | Source |
|
|
|
|
|
| The class unfold explains how to convert a coalgebra CoAlg and a seed
into a representation.
| | | Methods | | | Instances | |
|
|
|
|
| Construction of algebras
|
|
|
| For constructing algebras it is helpful to use this pairing combinator.
|
|
| Produced by Haddock version 2.4.2 |