Hello. some questions and suggestions

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Wed Dec 27 19:37:07 EST 2006


On Wed, 2006-12-27 at 23:22 +0000, Neil Mitchell wrote:
> Hi
> 
> >         I'd like to work on this too. But I I'm lacking some knowledge here.
> >
> >         At the moment cabal is using ReadP, right?
> >
> >         Am I also right that ReadP is lacking user friendly error messages
> >         compared to parsec?
> >
> >         I like the idea of using either { ; ; } or indentation. Thus you have
> >         best of both styles, C and python such like the haskell language.
> >
> >         So would it be ok to use parsec instead of ReadP?
> 
> Another advantage of Parsec is that then you'd be able to install a
> Hugs package without passing the -98 flag every time. ReadP requires
> forall, but Parsec doesn't unless you use the expression parser, which
> I doubt Cabal would require.
> 
> This will also make it easier to do a Yhc port of Cabal.

Actually I fixed that.

The issue was that hugs's version of ReadP needed -98 and Cabal's
'compat' version didn't, so I just changed the ifdefs so that hugs
always uses the compat implementation rather than it's own.

Duncan



More information about the cabal-devel mailing list