[Haskell-beginners] Defining custom parser using Parsec
Brent Yorgey
byorgey at seas.upenn.edu
Mon Oct 18 18:31:14 EDT 2010
On Mon, Oct 18, 2010 at 04:58:42PM -0500, Jimmy Wylie wrote:
>
> I do have one question though. Do you always have to define your own
> Applicative instance for GenParser when trying to use the Applicative
> form? I noticed that both you and also RWH defined your own when
> explaining this form of Parsec. Is there no standard
> Parsec.Applicative in the library.
I believe Parsec exports an Applicative instance in version 3.0 and
later, but previous versions of Parsec did not include it. After all,
the first few versions of Parsec were written before Applicative was
invented. =)
-Brent
More information about the Beginners
mailing list