Skip to content

Document other-extensions in user guide #1517

Closed

Description

@hvr

I was surprised to see that the user-guide doesn't mention the other-extensions field at all.

Activity

  1. asr commented on Jun 23, 2014

    @asr
    Contributor

    Meanwhile, could someone tell me the difference between the extensions and other-extensions fields?

  2. asr commented on Jun 23, 2014

    @asr
    Contributor

    I found the answer. Using cabal-version: >= 1.10, cabal-install 1.20.0.2 generates the following warning:

    Warning: For packages using 'cabal-version: >= 1.10' the 'extensions' field is
    deprecated. The new 'default-extensions' field lists extensions that are used
    in all modules in the component, while the 'other-extensions' field lists
    extensions that are used in some modules, e.g. via the {-# LANGUAGE #-}
    pragma.
    
  3. self-assigned this
    on Aug 25, 2014
  4. bicycle1885 commented on Oct 3, 2014

    @bicycle1885

    And the document about 'default-extensions' is also missing.

  5. added this to the milestone on Apr 23, 2015
  6. hvr commented on Sep 10, 2015

    @hvr
    MemberAuthor

    This has been partly addressed by 3f53ee2 but as @phadej points out it should provide more guidance about what effect using other-extensions has (e.g. for Cabal < 1.24 it results in Cabal aborting if the current compiler doesn't provide the extensions, for Cabal>=1.24 the solver uses that information)

  7. 23Skidoo commented on Sep 11, 2015

    @23Skidoo
    Member

    Fixed by #2818.

  8. massysett commented on Sep 11, 2015

    @massysett

    Thank you!

  9. Ericson2314 commented on Sep 15, 2016

    @Ericson2314
    Collaborator

    https://www.haskell.org/cabal/users-guide/ seems really out of date---this is probably documented elsewhere but I've twice forgotten about this, been confused by the lack of documentation at the URL, and then checked the repo.

  10. hvr commented on Sep 15, 2016

    @hvr
    MemberAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions