|
Generics.MultiRec.FoldK | Portability | non-portable | Stability | experimental | Maintainer | generics@haskell.org |
|
|
|
|
|
Description |
Variant of Generics.MultiRec.Fold where the result type is independent of
the index.
|
|
Synopsis |
|
|
|
|
Generic fold and unfold
|
|
type Algebra' s f r = forall ix. Ix s ix => s ix -> f s (K0 r) ix -> r | Source |
|
|
|
|
type AlgebraF' s f g r = forall ix. Ix s ix => s ix -> f s (K0 r) ix -> g r | Source |
|
|
|
|
|
|
|
|
type CoAlgebra' s f r = forall ix. Ix s ix => s ix -> r -> f s (K0 r) ix | Source |
|
|
|
|
type CoAlgebraF' s f g r = forall ix. Ix s ix => s ix -> r -> g (f s (K0 r) ix) | Source |
|
|
|
|
|
|
|
|
type ParaAlgebra' s f r = forall ix. Ix s ix => s ix -> f s (K0 r) ix -> ix -> r | Source |
|
|
|
|
type ParaAlgebraF' s f g r = forall ix. Ix s ix => s ix -> f s (K0 r) ix -> ix -> g r | Source |
|
|
|
|
|
|
|
|
Creating an algebra
|
|
type AlgPart a s b ix = a s (K0 b) ix -> b | Source |
|
|
type :-> f g s b ix = f s b ix -> g s b ix | Source |
|
|
|
|
|
|
|
|
Produced by Haddock version 2.4.2 |