Skip to content

Alex generates code with unqualified imports, e.g. of GHC.Exts #258

Closed
@andreasabel

Description

@andreasabel

jukebox-0.5.4 broke with GHC 9.4 because a new export Symbol form GHC.Exts clashes with a user-defined identifier of the same name. This is pretty bad, as it is inconvenient for the user to work around this.

Unqualified imports in generated code are just a ticking time bomb. It makes packages using Alex brittle. (And there is no material need for unqualified imports.)

The way forward here is to change Alex so that all its identifiers it imports are used qualified, so that there is no risk of clashing with user-defined identifiers.

See a parallel effort in BNFC:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions