[Haskell-cafe] Finding way around libraries (was parsec reorganization)
Rustom Mody
rustompmody at gmail.com
Wed Apr 13 11:42:32 UTC 2016
On Wed, Mar 30, 2016 at 10:06 PM, Joe Hillenbrand <joehillen at gmail.com>
wrote:
> Parsec isn't as maintained as Megaparsec
> <https://mrkkrp.github.io/megaparsec/>.
>
> I recommend checking out the tutorials here
> <https://mrkkrp.github.io/megaparsec/tutorials.html>.
>
So under the advice to use megaparsec instead of parsec, I tried the
examples here:
https://mrkkrp.github.io/megaparsec/tutorials/fun-with-the-recovery-feature.html
Got a page full of errors starting:
fpl.hs:42:20: Not in scope: ‘<$>’ …
Perhaps you meant one of these:
On a hunch I changed
import Control.Applicative (empty)
to
import Control.Applicative
and then it started working.
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.
Also I find no megaparsec on hoogle/hayoo
So how does one go about handling the dilemma:
- megaparsec : in development but undocumented on hayoo/hoohle
- parsec : documented but bitrotten
What/how do haskell pros go about handling such
Thanks
Rusi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160413/90f06315/attachment.html>
More information about the Haskell-Cafe
mailing list