Skip to content

BNFC tarball ships Lex.hs and Par.hs #467

Closed

Description

@andreasabel

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:

BNFC-2.8.3/dist/build/unit-tests/unit-tests-tmp/LexBNF.hs
BNFC-2.8.3/dist/build/bnfc/bnfc-tmp/LexBNF.hs
BNFC-2.8.3/src/LexBNF.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:

  • install alex-3.2.5
  • install recent GHC, e.g. 9.4.7
  • cabal install BNFC-2.9.5

Activity

  1. added this to the milestone on Nov 3, 2023
  2. self-assigned this
    on Nov 3, 2023
  3. linked a pull request that will close this issueDon't add `Lex/Par.hs` to sdist tarball #466on Nov 3, 2023
  4. changed the title [-]BNFC tarball ships `Lex.hs` and `Par.hs` which could lead to build failure[/-] [+]BNFC tarball ships `Lex.hs` and `Par.hs`[/+] on Nov 3, 2023
  5. modified the milestones: , 2.9.6 on Aug 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions