|
| Generics.Regular.Rewriting.Base | | Portability | non-portable | | Stability | experimental | | Maintainer | generics@haskell.org |
|
|
|
|
|
| Description |
| Summary: Base generic functions that are used for generic rewriting.
|
|
| Synopsis |
|
|
|
|
| Functorial map function.
|
|
| Functor (fmap) |
|
| Monadic functorial map function.
|
|
|
| The GMap class defines a monadic functorial map.
| | | Methods | | | Instances | |
|
|
| Crush functions.
|
|
|
| The Crush class defines a crush on functorial values. In fact,
crush is a generalized foldr.
| | | Methods | | crush :: (a -> b -> b) -> b -> f a -> b | Source |
|
| | Instances | |
|
|
|
| Flatten a structure by collecting all the elements present.
|
|
| Zip functions.
|
|
|
| The Zip class defines a monadic zip on functorial values.
| | | Methods | | fzipM :: Monad m => (a -> b -> m c) -> f a -> f b -> m (f c) | Source |
|
| | Instances | |
|
|
| fzip :: (Zip f, Monad m) => (a -> b -> c) -> f a -> f b -> m (f c) | Source |
|
| Functorial zip with a non-monadic function, resulting in a monadic value.
|
|
| fzip' :: Zip f => (a -> b -> c) -> f a -> f b -> f c | Source |
|
| Partial functorial zip with a non-monadic function.
|
|
| Equality function.
|
|
|
| Equality on values based on their structural representation.
|
|
| Show function.
|
|
|
| The GShow class defines a show on values.
| | | Methods | | | Instances | |
|
|
| Functions for generating values that are different on top-level.
|
|
|
| The LRBase class defines two functions, leftb and rightb, which
should produce different values.
| | | Methods | | | Instances | |
|
|
|
| The LR class defines two functions, leftf and rightf, which should
produce different functorial values.
| | | Methods | | | Instances | |
|
|
|
| Produces a value which should be different from the value returned by
right.
|
|
|
| Produces a value which should be different from the value returned by
left.
|
|
| Produced by Haddock version 2.4.2 |