Skip to content

Document other-extensions in user guide #1517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hvr opened this issue Sep 23, 2013 · 8 comments
Closed

Document other-extensions in user guide #1517

hvr opened this issue Sep 23, 2013 · 8 comments
Assignees
Milestone

Comments

@hvr
Copy link
Member

hvr commented Sep 23, 2013

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

@asr
Copy link
Contributor

asr commented Jun 23, 2014

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

@asr
Copy link
Contributor

asr commented Jun 23, 2014

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.

@23Skidoo 23Skidoo self-assigned this Aug 25, 2014
@bicycle1885
Copy link

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

@ttuegel ttuegel added this to the Cabal-1.24 milestone Apr 23, 2015
@hvr
Copy link
Member Author

hvr commented Sep 10, 2015

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)

@23Skidoo
Copy link
Member

Fixed by #2818.

@massysett
Copy link

Thank you!

@Ericson2314
Copy link
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.

@hvr
Copy link
Member Author

hvr commented Sep 15, 2016

@Ericson2314 for future reference, bleeding edge docs are at http://cabal.readthedocs.io/en/latest/developing-packages.html#build-information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants