This affects all releases of BNFC 2.9 and most of 2.8.
Not affected: 2.8.1, 2.8.3.1
It is not clear though whether this makes cabal skip the alex and happy steps. So it could be a cosmetic issue.
I had some problem with 2.8.3 (fixed in 2.8.3.1), but that shipped several copies of Lex.hs:
Today I witnessed a build failure of BNFC with an old alex (using GHC 9.4 with alex 3.2.5). Maybe this can be fixed by requiring a new alex and happy in the build-tool-depends section that create output valid for all GHCs we support (8 and 9 so far).
Reproducer would be:
This affects all releases of BNFC 2.9 and most of 2.8.
Not affected: 2.8.1, 2.8.3.1
It is not clear though whether this makes
cabal
skip thealex
andhappy
steps. So it could be a cosmetic issue. I had some problem with 2.8.3 (fixed in 2.8.3.1), but that shipped several copies ofLex.hs
:Today I witnessed a build failure of BNFC with an old
alex
(using GHC 9.4 with alex 3.2.5). Maybe this can be fixed by requiring a newalex
andhappy
in thebuild-tool-depends
section that create output valid for all GHCs we support (8 and 9 so far). Reproducer would be:cabal install BNFC-2.9.5