Skip to content

Remove unnecessary deriving Typeable from generated Haskell code #503

Closed

Description

@MatthewDaggitt

BNFC currently generates deriving (C.Typeable) clauses, but since GHC 7.10 all instances of Typeable are autoderived.

Recent versions of GHC have now started warning about this.

It looks like BNFC only supports GHC 8.10 and later so these deriving statements should probably be removed?

Activity

  1. andreasabel commented on Aug 1, 2025

    @andreasabel
    Member

    BNFC only supports GHC 8.10

    I guess you meant 7.10.
    Yes, they are obsolete and shall be removed!

  2. added a commit that references this issue on Aug 1, 2025
    8b1b96c
  3. added this to the milestone on Aug 1, 2025
  4. MatthewDaggitt commented on Aug 10, 2025

    @MatthewDaggitt
    Author

    I don't suppose we could get a release of 2.9.5.1 in order to use this fix downstream?

  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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions