[Haskell-cafe] Re: How to make cabal pass flags to happy?

Duncan Coutts duncan.coutts at googlemail.com
Mon Oct 18 17:41:39 EDT 2010

On Sat, 2010-10-16 at 16:44 +0100, Thomas Schilling wrote:

> I'm CC'ing Duncan, in case he has a better idea.

> On 13 October 2010 19:44, Niklas Broberg <niklas.broberg at gmail.com> wrote:

> >> What I want specifically is to have happy produce a GLR parser from my
> >> .ly file, and I want this to happen during 'cabal install'. Which in
> >> turn means I want cabal to pass the "--glr" flag to happy during
> >> setup. My best guess is that I might want to use 'ppHappy' [1], or
> >> something in the vicinity, but there's no documentation for the
> >> combinator and it's far from obvious how to pass arguments to it.

I think the "right solution" is for the happy source file to specify
what kind of grammar it is / should be produced. Yes, that would mean
modifying happy.


More information about the Haskell-Cafe mailing list