<div dir="ltr">+1 (yes, please).</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 16, 2013 at 4:33 AM, David Luposchainsky <span dir="ltr"><<a href="mailto:dluposchainsky@googlemail.com" target="_blank">dluposchainsky@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br>
<br>
I recently went through GHC's source, and discovered there are quite a<br>
few instances of Monad that don't have Functor or Applicative instances.<br>
Fixing this is very easy by adding the standard instances (pure = return<br>
etc.), and will not break code.<br>
<br>
There is one exception to this: Hoopl defines its own (<*>). However,<br>
since it does not seem to have any packages depend on it otherwise,<br>
renaming this operator is also easily done (the thing is only used ten<br>
times or so). I called it (<*|*>) to complement (|*><*|), but naming<br>
should be the least important issue here.<br>
<br>
Small piece of backstory:<br>
The idea behind this is making GHC future-proof for changing Applicative<br>
to be a superclass of Monad. However, I think adding the Applicative<br>
instances is a good idea regardless of whether this will ever happen, so<br>
that's the only thing I'm proposing right now.<br>
<br>
Greetings,<br>
David<br>
<br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/libraries" target="_blank">http://www.haskell.org/mailman/listinfo/libraries</a><br>
</blockquote></div><br></div>