summaryrefslogtreecommitdiff
path: root/compiler/GHC/Rename
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-08-23 13:30:44 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2021-12-02 17:05:30 +0000
commit64f213282bfe51a56ffb5937fa2bc74e4dabea40 (patch)
tree69ef5542d9c54b94e995828bdc2c99fa96ed2c29 /compiler/GHC/Rename
parentd3c7f9be47ac99637ac0ede0759f77da320afaad (diff)
downloadhaskell-wip/revert-data-list.tar.gz
Revert "Data.List specialization to []"wip/revert-data-list
This reverts commit bddecda1a4c96da21e3f5211743ce5e4c78793a2. This implements the first step in the plan formulated in #20025 to improve the communication and migration strategy for the proposed changes to Data.List. Requires changing the haddock submodule to update the test output.
Diffstat (limited to 'compiler/GHC/Rename')
-rw-r--r--compiler/GHC/Rename/Names.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/GHC/Rename/Names.hs b/compiler/GHC/Rename/Names.hs
index 768e43fca1..806a9e4dbf 100644
--- a/compiler/GHC/Rename/Names.hs
+++ b/compiler/GHC/Rename/Names.hs
@@ -594,8 +594,6 @@ calculateAvails home_unit iface mod_safe' want_boot imported_by =
-- | Issue a warning if the user imports Data.List without either an import
-- list or `qualified`. This is part of the migration plan for the
-- `Data.List.singleton` proposal. See #17244.
---
--- Currently not used for anything.
warnUnqualifiedImport :: ImportDecl GhcPs -> ModIface -> RnM ()
warnUnqualifiedImport decl iface =
when bad_import $ do
@@ -627,8 +625,7 @@ warnUnqualifiedImport decl iface =
]
-- Modules for which we warn if we see unqualified imports
- -- Currently empty.
- qualifiedMods = mkModuleSet []
+ qualifiedMods = mkModuleSet [ dATA_LIST ]
warnRedundantSourceImport :: ModuleName -> TcRnMessage