<div dir="ltr">Most likely because MonadOfNoReturn will transitionally define return = pure, and instead of a compile error error you would end up with runtime infinite loops.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 1, 2019 at 3:09 PM Johannes Waldmann <<a href="mailto:johannes.waldmann@htwk-leipzig.de">johannes.waldmann@htwk-leipzig.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear Cafe,<br>
<br>
the migration guide (for AMP)<br>
<br>
<a href="https://gitlab.haskell.org/ghc/ghc/wikis/migration/7.10#ghc-says-no-instance-for-applicative-" rel="noreferrer" target="_blank">https://gitlab.haskell.org/ghc/ghc/wikis/migration/7.10#ghc-says-no-instance-for-applicative-</a><br>
<br>
contains this advice:<br>
<br>
instance Applicative Foo where<br>
    -- NB: DO NOT USE `pure = return`<br>
<br>
Why not? Because it would require another refactoring<br>
once "monad of no return" comes true?<br>
<br>
So defining `return` in the Monad instance should work fine until then?<br>
Which is when exactly? I can't quite make it out from<br>
<a href="https://gitlab.haskell.org/ghc/ghc/wikis/proposal/monad-of-no-return/discussion" rel="noreferrer" target="_blank">https://gitlab.haskell.org/ghc/ghc/wikis/proposal/monad-of-no-return/discussion</a><br>
<br>
<br>
- J.W.<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<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>
Only members subscribed via the mailman list are allowed to post.</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>brandon s allbery kf8nh</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a></div></div></div></div></div>