<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 13, 2016 at 2:42 PM, Rustom Mody <span dir="ltr"><<a href="mailto:rustompmody@gmail.com" target="_blank">rustompmody@gmail.com</a>></span> wrote:<br><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">On Wed, Mar 30, 2016 at 10:06 PM, Joe Hillenbrand <span dir="ltr"><<a href="mailto:joehillen@gmail.com" target="_blank">joehillen@gmail.com</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-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div>Parsec isn't as maintained as <a href="https://mrkkrp.github.io/megaparsec/" target="_blank">Megaparsec</a>.<br><br></div>I recommend checking out the tutorials <a href="https://mrkkrp.github.io/megaparsec/tutorials.html" target="_blank">here</a>.<br></div></blockquote><div><br></div><div>So under the advice to use megaparsec instead of parsec, I tried the examples here: <a href="https://mrkkrp.github.io/megaparsec/tutorials/fun-with-the-recovery-feature.html" target="_blank">https://mrkkrp.github.io/megaparsec/tutorials/fun-with-the-recovery-feature.html</a><br><br></div><div>Got a page full of errors starting:<br><br>fpl.hs:42:20: Not in scope: ‘<$>’ …<br>    Perhaps you meant one of these:<br><br></div><div>On a hunch I changed<br>import Control.Applicative (empty)<br></div><div>to <br>import Control.Applicative <br><br></div><div>and then it started working.<br></div></div></div></div></blockquote><div><br></div><div>This specific case is most likely due to different versions of GHC being used. Since 7.10, Prelude exports <$>. To avoid these kinds of problems, I've started including Stack script interpreter lines at the beginning of examples to encode exactly which version of GHC and other packages the example was tested with. In fact, I wrote a blog post about it last week:</div><div><br></div><div><a href="http://www.yesodweb.com/blog/2016/04/stackifying-the-cookbook">http://www.yesodweb.com/blog/2016/04/stackifying-the-cookbook</a><br></div><div><br></div><div>Michael</div><div> </div><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"><div class="gmail_extra"><div class="gmail_quote"><div>I can only expect that if megaparsec's own official tutorials are thus 
out of sync with current haskell, then parsec's will be even more so.<br><br><br>Also I find no megaparsec on hoogle/hayoo<br></div><div><br>So how does one go about handling the dilemma:<br></div><div>  - megaparsec : in development but undocumented on hayoo/hoohle<br></div><div>  - parsec : documented but bitrotten<br><br></div><div>What/how do haskell pros go about handling such<br></div><div><br></div><div>Thanks<br></div><div>Rusi<br></div></div>
</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></div>