3 ms·
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
by shachaf 13y ago
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,
fmap _ _ = []
satisfies fmap f . fmap g = fmap (f . g), but not fmap id = id.
- tel 13y agoWhoops, that's correct.