summaryrefslogtreecommitdiff
path: root/compiler/GHC/Hs
diff options
context:
space:
mode:
authorOleg Grenrus <oleg.grenrus@iki.fi>2021-01-19 13:43:54 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-01-29 04:03:22 -0500
commit6fc920847f65e9b9f347bde42b2f9ec624468cfd (patch)
tree7585cb4198e5a0f96b7f05a47c1a4a9138008d8a /compiler/GHC/Hs
parent37378a0b20d068f5704486dbd03b3f4099442965 (diff)
downloadhaskell-6fc920847f65e9b9f347bde42b2f9ec624468cfd.tar.gz
Add explicit import lists to Data.List imports
Related to a future change in Data.List, https://downloads.haskell.org/ghc/8.10.3/docs/html/users_guide/using-warnings.html?highlight=wcompat#ghc-flag--Wcompat-unqualified-imports Companion pull&merge requests: - https://github.com/judah/haskeline/pull/153 - https://github.com/haskell/containers/pull/762 - https://gitlab.haskell.org/ghc/packages/hpc/-/merge_requests/9 After these the actual change in Data.List should be easy to do.
Diffstat (limited to 'compiler/GHC/Hs')
-rw-r--r--compiler/GHC/Hs/Binds.hs2
-rw-r--r--compiler/GHC/Hs/Utils.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Hs/Binds.hs b/compiler/GHC/Hs/Binds.hs
index c345cbe5e9..5316046880 100644
--- a/compiler/GHC/Hs/Binds.hs
+++ b/compiler/GHC/Hs/Binds.hs
@@ -48,7 +48,7 @@ import GHC.Data.BooleanFormula (LBooleanFormula)
import GHC.Utils.Outputable
import GHC.Utils.Panic
-import Data.List hiding ( foldr )
+import Data.List (sortBy)
import Data.Function
{-
diff --git a/compiler/GHC/Hs/Utils.hs b/compiler/GHC/Hs/Utils.hs
index 39ce2c19bd..7219ac381b 100644
--- a/compiler/GHC/Hs/Utils.hs
+++ b/compiler/GHC/Hs/Utils.hs
@@ -147,7 +147,7 @@ import GHC.Utils.Panic
import Data.Either
import Data.Function
-import Data.List
+import Data.List ( partition, deleteBy )
import Data.Proxy
{-