haskell / happy

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

Is there a way to revise broken build-plans for older `happy`s? #214

Closed andreasabel closed 2 years ago

andreasabel commented 2 years ago

On matrix.hackage, the builds for happy < 1.19.6 are broken:

Screenshot 2021-11-11 at 22 17 04

Is there a way to repair them? E.g., for https://matrix.hackage.haskell.org/#/package/happy/1.19.5/ghc-8.2.2@1634762740 the build log says:

In order, the following will be built (use -v for more details):
 - happy-1.19.5 {happy-1.19.5-inplace} (exe:happy) (first run)
...
Preprocessing executable 'happy' for happy-1.19.5..
setup: The program 'happy' is required but it could not be found

This problem does not seem sensibly fixable by a revision of the happy.cabal file of 1.19.5, or does it? We could try to add dependency

build-tool: happy

and then it could install e.g. happy-1.20.0 first (which has a working build-plan) --- unless constraint happy==1.19.5 prevents this. Dunno. Even if that would work, a dependency of a package on a future version of itself would be kind of perverse...

andreasabel commented 2 years ago

I realized that such revisions are likely not possible. Cf. https://github.com/haskell-infra/hackage-trustees/issues/321