mrkkrp/megaparsec

How to use `Operator` from tutorial

ju-sh opened this issue · 2 comments

Hi.

I was trying to go through the tutorial at
https://markkarpov.com/tutorial/megaparsec.html

There we set up an operator table, right?

But Operator was removed from megaparsec.
I guess we should use it from parser-combinators now.

But I couldn't figure out how to even import parser-combinators.
Name clashes?
How we use the Operator table for the tutorial example for parsing Expr?

Well, without a more concrete description of your situation I'm not sure where the difficulty arises. The tutorial is up to date, it states explicitly that you should depend on parser-combinators and import Control.Monad.Combinators.Expr.