-
Notifications
You must be signed in to change notification settings - Fork 722
Description
default-language
has been optional for some time (see #6288). However, now that GHC has started introducing language editions like GHC2021
and GHC2024
, packages that do not specify a default-language
may be broken when GHC's default changes will fall back to Haskell98
, potentially unexpectedly. Thus it would be better if cabal check
issued a warning about such packages.
See discussion from ghc-proposals/ghc-proposals#613 (comment) onwards. As @gbaz notes:
We have a pretty clear plan of action that we can all agree on -- a pr to the cabal repo that creates a warning for missing language of at least "suspicious" severity -- which will lead to it being classified by
isHackageDistError
as something hackage would reject, and will lead to hackage, when it moves to using the new version of the cabal library, indeed rejecting the package.