<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>What about</div><div><br></div><div>f <$!> x = (f $!) <$> x </div><div><br></div><div>?</div><div><br></div><div>--Will</div><div><br><br></div><div><br>On Aug 10, 2015, at 14:20, Christopher Allen <<a href="mailto:cma@bitemyapp.com">cma@bitemyapp.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><a href="http://stackoverflow.com/questions/9423622/strict-fmap-using-only-functor-not-monad">http://stackoverflow.com/questions/9423622/strict-fmap-using-only-functor-not-monad</a> seems to cover it.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 10, 2015 at 4:17 PM, Alexey Egorov <span dir="ltr"><<a href="mailto:electreg@list.ru" target="_blank">electreg@list.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello haskellers,<br>
<br>
I wonder why <$> and <$!> have different typeclass constraints?<br>
<br>
(<$>) :: Functor f => (a -> b) -> f a -> f b<br>
(<$!>) :: Monad m => (a -> b) -> m a -> m b<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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Chris Allen<br><div><span style="font-size:12.8000001907349px">Currently working on </span><a href="http://haskellbook.com" target="_blank">http://haskellbook.com</a></div></div></div></div></div></div>
</div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Haskell-Cafe mailing list</span><br><span><a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a></span><br><span><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a></span><br></div></blockquote></body></html>