-- definition class Functor f where fmap :: (a -> b) -> f a -> f b -- methods (<$) :: a -> f b -> f a (<$) = fmap . const
In Haskell, the first law implies the second.
Haskell, Functor, Functor category