Status of Data.List compatibility warning
There is currently a warning implemented in -Wcompat
which warns you when importing Data.List
in a non-qualified manner.
A.hs:3:8: warning: [-Wcompat-unqualified-imports]
To ensure compatibility with future core libraries changes
imports to Data.List should be
either qualified or have an explicit import list.
|
3 | import Data.List
| ^^^^^^^^^
Ok, one module loaded.
GHC ticket: #17244 (closed) CLC discussion: https://groups.google.com/g/haskell-core-libraries/c/q3zHLmzBa5E
This warning was implemented as part of the migration to making Data.List
monomorphic again (and to be used like Data.Set, Data.Map etc). That doesn't seem like it happened, and I imagine that the current CLC would require a new proposal anyway in order to do that now. It's not clear in any case what "future core libraries changes" we are waiting to happen before this warning can be removed.
Therefore, I propose to remove this warning and to "start again" with a transition plan if people want to modify Data.List
in some manner.
This is now motivated because ghc-internal
is split from base
we want to remove base
as a wired-in package (so there is potential for it to be reinstalled).