<div dir="ltr">On Thu, Apr 30, 2015 at 1:32 PM, Nikita Volkov <span dir="ltr"><<a href="mailto:nikita.y.volkov@mail.ru" target="_blank">nikita.y.volkov@mail.ru</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I'm afraid I have to disagree with Adam as well. Recently I've triggered a prolonged discussion on exactly the subject (<a href="https://github.com/ekmett/either/pull/38" target="_blank">https://github.com/ekmett/either/pull/38</a>). Being originally convinced that the instances can behave however it fits, I think I've been over-persuaded in the end.<div><br></div><div>Shortly speaking, while I can't say I like it, the rule seems to be that `<*>` should produce the same side effects as Monad's `ap`.<div><br></div></div></div></blockquote><div><br></div><div>One example of a library where the Applicative and Monad instances mismatch is uu-parsinglib.</div><div><br></div><div><a href="http://stackoverflow.com/questions/18275123/cannot-compute-minimal-length-of-a-parser-uu-parsinglib-in-haskell/18292328#18292328">http://stackoverflow.com/questions/18275123/cannot-compute-minimal-length-of-a-parser-uu-parsinglib-in-haskell/18292328#18292328</a><br></div><div><br></div><div>There's a good reason the library is this way but the behavior can be rather startling.</div></div></div></div>