haskell / happy

The Happy parser generator for Haskell
Other
276 stars 84 forks source link

Preprocess templates before sdist #144

Closed phadej closed 5 years ago

phadej commented 5 years ago

As far as I can see, there are no reason to preprocess tempalates using Setup.hs.

I'd like to remove build-type: Custom, for example by creating a Makefile to preprocess templates into bundled data-files.

There is general motivation that build-type: Custom is tricky thing, but also that it uses ghcProgram.

simonmar commented 5 years ago

Yes, we should do this in the same way as it's done in Alex. I'm short on bandwidth to do it myself, if anyone wants to submit a patch that would be great.