Conversation
This helps avoid missing features in cabal-install, but doesn't yet work because Cabal doesn't realize it should use `happy-boot` for `.ly` files.
Could this be resolved by having a custom Setup.hs and calling happy-boot by hand? |
|
Having If I understand right, this work is to make developing experience of IMHO, if parser can be generated locally it should... Until there is needed support in |
|
@phadej OK. How do you imagine it should be done? Should there be a field in the |
I'd imagine it work so. That would be great addition in general. Hardcoding/blessing just some tools is not future-proof nor extensible. EDIT: it could be bikeshedded to somehow support not 1-to-1 preprocessing as well, but I'd leave that out until someone has a concrete plan. Or to process files in order / all at once. (search for c2hs and BNFC on cabal issue tracker). |
|
There's a small irony here that In the longer term I hope happy will always be usable via TH (even in GHC), and there will be no need for these custom preprocesors or generalized support for them in Cabal, but we're not there yet. |
This helps avoid missing features in cabal-install, but doesn't yet work
because Cabal doesn't realize it should use
happy-bootfor.lyfiles.