-
Notifications
You must be signed in to change notification settings - Fork 847
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
How to override default-language
to GHC2021 (for use with GHC9.2.2)
#5739
Comments
EDIT: Alternatively, you could install locally version 0.35.0 of the Alternatively, you could not use |
Thanks @mpilgrem, I did not know about hpack and package.yaml. FYI: The trick with
|
One additional question, can this setting be controlled via UPDATE: it seems that adding |
Yes, that is correct - see the documentation on the |
I still get GHC2010 in the Any simple workaround? (I'd prefer to keep having the I was also a bit confused about GHC and GHCi not defaulting to the same base languages:
Project was created with
Verifying hpack >= 0.35.0
Still:
(All Versions:
|
@LeuschkeTressa, if you specify |
It does! Thanks. |
For future readers: Regarding (from my initial comment):
This inconsistency was previously reported as #5973. b6d11f7 is intended to fix this. It was committed to release 2.11.1, which is a later release than what I am using. |
How to set
default-language
to GHC2021 instead of Haskell2010?When using stack in a project, it sets the
default-language
in the generated cabal file to Haskell2010. Afaik, this disables some modules that would otherwise be enabled by default in GHC9.2.x (via the GHC2021 language extension).Any suggestions on how to work around this behavior of stack?
The text was updated successfully, but these errors were encountered: