
30 Dec
2015
30 Dec
'15
8:27 p.m.
This is one of the functor laws, the other one being `fmap id = id'. If it
doesn't hold your type *should* not have a Functor instance, but the
compiler doesn't verify this for you.
HTH,
Adam
On Thu, Dec 31, 2015 at 2:15 AM, David Banas
Is this true, in general?:
fmap h (fmap g f) == fmap (h . g) f
Is there a simple proof?
Thanks, -db
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe