-
Notifications
You must be signed in to change notification settings - Fork 701
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
Warn on missing default-language #9620
Comments
But it already does:
Is that enough for you? edit: I see, 3.4 or later. |
Exactly, the warning should appear on cabal-version 3.4 and later as well. |
@adamgundry after checking the relevant code, a cabal dev (I forgot who specifically, sorry) discovered that cabal defaults to Would this solve your issue? |
That's good news from a stability perspective. I think this feature request still makes sense, because it's very non-obvious that this default exists, so having |
I plan to add a soft warning to |
default-language
has been optional for some time (see #6288). However, now that GHC has started introducing language editions likeGHC2021
andGHC2024
, packages that do not specify adefault-language
may be broken when GHC's default changeswill fall back toHaskell98
, potentially unexpectedly. Thus it would be better ifcabal check
issued a warning about such packages.See discussion from ghc-proposals/ghc-proposals#613 (comment) onwards. As @gbaz notes:
The text was updated successfully, but these errors were encountered: