Functor
Represents a mapping between categories
Functions
class Functor f where
fmap :: (a -> b) -> f a -> f b
(<$) :: a -> f b -> f a
Operators
<$>
- infix form offmap
Laws
fmap id = id
fmap (f . g) = fmap f . fmap g
External Links
- Functor on the HaskellWiki
- The functor design pattern on Haskell for All