[Haskell-cafe] The 13-line example in Text.Megaparsec.Expr

Özgür Akgün ozgurakgun at gmail.com
Mon Feb 29 10:05:11 UTC 2016


On 29 February 2016 at 08:22, Stephen Tetley <stephen.tetley at gmail.com>
wrote:

>
> For the expression parser, Megaparsec's documentation is wrong[*] and
> probably it should use symbol rather than reservedOp. Note that symbol
> is slightly different in Megaparsec as it's a plain combinator (rather
> than one instantiated from a first class module as in Parsec) so it
> takes two args rather than one.
>
>
> [*] Well, likely wrong - I haven't got round to using Megaparsec yet.
>


You are right:
https://github.com/mrkkrp/megaparsec/commit/750adb7c70392c3195eda12d816f4a1a2305321e


-- 
Özgür Akgün
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160229/1d43dfb5/attachment.html>


More information about the Haskell-Cafe mailing list