summaryrefslogtreecommitdiff
path: root/compiler/GHC/Rename
diff options
context:
space:
mode:
authorOleg Grenrus <oleg.grenrus@iki.fi>2021-01-24 15:29:37 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-04-01 00:39:28 -0400
commitbddecda1a4c96da21e3f5211743ce5e4c78793a2 (patch)
treedca8990476f2c803df91c164f8169d1a40d8123d /compiler/GHC/Rename
parent5192183f5f4df4e3c0b00346e633c5270ed16283 (diff)
downloadhaskell-bddecda1a4c96da21e3f5211743ce5e4c78793a2.tar.gz
Data.List specialization to []
- Remove GHC.OldList - Remove Data.OldList - compat-unqualified-imports is no-op - update haddock submodule
Diffstat (limited to 'compiler/GHC/Rename')
-rw-r--r--compiler/GHC/Rename/Names.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/GHC/Rename/Names.hs b/compiler/GHC/Rename/Names.hs
index 2781f9df91..aa5019895f 100644
--- a/compiler/GHC/Rename/Names.hs
+++ b/compiler/GHC/Rename/Names.hs
@@ -518,6 +518,8 @@ 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 =
whenWOptM Opt_WarnCompatUnqualifiedImports
@@ -546,7 +548,8 @@ warnUnqualifiedImport decl iface =
]
-- Modules for which we warn if we see unqualified imports
- qualifiedMods = mkModuleSet [ dATA_LIST ]
+ -- Currently empty.
+ qualifiedMods = mkModuleSet []
warnRedundantSourceImport :: ModuleName -> SDoc