Skip to content
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

Cabal uses Haskell98 by default #1158

Closed
UnkindPartition opened this issue Dec 22, 2012 · 2 comments
Closed

Cabal uses Haskell98 by default #1158

UnkindPartition opened this issue Dec 22, 2012 · 2 comments

Comments

@UnkindPartition
Copy link
Contributor

Cabal passes -XHaskell98 to GHC by default. In practice this can be observed e.g. by getting warnings about pattern guards (which are H2010 but not H98).

Leaving this as a default forever would be at least strange.

Removing this default might break some old packages — how do we feel about that?

As a heuristic, we can enable Haskell98 when the package depends on the haskell98 package (and doesn't explicitly specify the language revision).

@UnkindPartition
Copy link
Contributor Author

I just noticed that if I specify Cabal-Version: >= 1.10, it asks to give the default language for each component. I guess that's the correct behaviour.

@byorgey
Copy link
Member

byorgey commented Dec 22, 2012

Note also that the latest cabal init sets Cabal-Version: >= 1.10, so new users will not run into this issue.

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

No branches or pull requests

2 participants