<div dir="ltr">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.<div><br></div><div>HTH,</div><div>Adam</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 31, 2015 at 2:15 AM, David Banas <span dir="ltr"><<a href="mailto:capn.freako@gmail.com" target="_blank">capn.freako@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Is this true, in general?:<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="Menlo">fmap h (fmap g f) == fmap (h . g) f</font></div></blockquote><div><br></div><div>Is there a simple proof?</div><div><br></div><div>Thanks,</div><div>-db</div><div><br></div></div><br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>