MonadEx v1.1.3 Functor protocol View Source

Functors are mappings or homomorphisms between categories –Wikipedia

Functors always take one parameter. They also preserve identity and composition (see Functor.Law).

Link to this section Summary

Functions

Takes a function and a functor and returns a functor

Link to this section Types

Link to this section Functions

Link to this function fmap(value, fun) View Source
fmap(t(), (term() -> term())) :: t()

Takes a function and a functor and returns a functor.

In Haskell types: fmap :: (a -> b) -> f a -> f b