|
| Generics.EMGM.Functions.Map | | Portability | non-portable | | Stability | experimental | | Maintainer | generics@haskell.org |
|
|
|
| Description |
Summary: Generic function that applies a (non-generic) function to all
elements contained in a polymorphic datatype.
map is a generic version of the Prelude map function. It works on all
supported container datatypes of kind * -> *. The map function is
equivalent to fmap after deriving Functor if that were possible.
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
| The type of a generic function that takes a value of one type and returns a
value of a different type.
| | Constructors | | Instances | |
|
|
|
| Apply a function to all elements of a container datatype (kind * -> *).
|
|
|
| Replace all a-values in as with b.
|
|
|
| Given a datatype F a b, bimap f g applies the function f :: a -> c to
every a-element and the function g :: b -> d to every b-element. The
result is a value with transformed elements: F c d.
|
|
| Produced by Haddock version 2.4.2 |