Re:Go by Example
by shachaf on Sunday January 19, 2014 @09:28PM
(#7087187)
The last part is backwards -- when F is a functor, the only law we need to check is the identity law, but checking the composition law isn't enough. For example,
satisfies fmap f . fmap g = fmap (f . g), but not fmap id = id.
[ Parent
| on HN ]