Skip to content

Remove other-extensions keyword #3081

Closed

Description

@seagreen

It seems like a bad idea to have derivable data in .cabal files. Library authors often put something inaccurate in this field, and even when they get it right it's unnecessary work.

Instead we could write a command to show the language extensions used in a project. That command could be made available as a cabal-install flag (or provided separately if it's too much clutter for cabal-install).

Activity

  1. added this to the milestone on Jan 27, 2016
  2. hvr commented on Jan 28, 2016

    @hvr
    Member

    @seagreen other-extensions provides esential meta-information to the cabal solver it couldn't otherwise access, in fact the solver was finally hooked up in #2644 to use this information.

    We've recently added the ability to Hackage to edit other-extensions in existing releases to become more accurate. So what you're proposing is going into the exact opposite direction of what we're currently working towards! Personally I consider this de-feature request a wontfix

  3. removed this from the milestone on Jan 28, 2016
  4. 23Skidoo commented on Jan 28, 2016

    @23Skidoo
    Member

    The ability to automatically derive this info is useful, however. Ideally, Hackage would prevent uploading packages with incorrect other-extensions. But I guess we can open a separate ticket for this.

  5. hvr commented on Jan 28, 2016

    @hvr
    Member

    @23Skidoo cabal init already derives that information automatically when it prefills your initial .cabal file, we may want something like the gen-bounds feature for other-extensions...

  6. 23Skidoo commented on Jan 28, 2016

    @23Skidoo
    Member

    cabal init already derives that information automatically

    I guess the main problem with integrating this with cabal check is CPP? Though we can make it a warning of course.

  7. hvr commented on Jan 28, 2016

    @hvr
    Member

    @23Skidoo fwiw, I'm working on something like ghc --allowed-extensions=TemplateHaskellQuotes,BinaryLiterals,LambdaCase, which would turn undeclared other-extensions into compile warnings... won't help cabal check though

  8. 23Skidoo commented on Jan 28, 2016

    @23Skidoo
    Member

    That's cool!

  9. Blaisorblade commented on Aug 30, 2016

    @Blaisorblade
    Collaborator

    But I guess we can open a separate ticket for this.

    Was this ticket opened? Where's a link? Reopening till that happens. Feel free to close again when the new ticket is created.

  10. 23Skidoo commented on Aug 30, 2016

    @23Skidoo
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions