diff options
author | Oleg Grenrus <oleg.grenrus@iki.fi> | 2021-01-19 13:43:54 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-01-29 04:03:22 -0500 |
commit | 6fc920847f65e9b9f347bde42b2f9ec624468cfd (patch) | |
tree | 7585cb4198e5a0f96b7f05a47c1a4a9138008d8a /libraries | |
parent | 37378a0b20d068f5704486dbd03b3f4099442965 (diff) | |
download | haskell-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 'libraries')
-rw-r--r-- | libraries/ghc-boot/GHC/BaseDir.hs | 2 | ||||
-rw-r--r-- | libraries/ghc-boot/GHC/Data/SizedSeq.hs | 2 | ||||
-rw-r--r-- | libraries/ghc-heap/GHC/Exts/Heap/Utils.hsc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libraries/ghc-boot/GHC/BaseDir.hs b/libraries/ghc-boot/GHC/BaseDir.hs index 656e4014db..407f7c0b83 100644 --- a/libraries/ghc-boot/GHC/BaseDir.hs +++ b/libraries/ghc-boot/GHC/BaseDir.hs @@ -16,7 +16,7 @@ module GHC.BaseDir where import Prelude -- See Note [Why do we import Prelude here?] -import Data.List +import Data.List (stripPrefix) import System.FilePath -- Windows diff --git a/libraries/ghc-boot/GHC/Data/SizedSeq.hs b/libraries/ghc-boot/GHC/Data/SizedSeq.hs index b48791d863..975af2c854 100644 --- a/libraries/ghc-boot/GHC/Data/SizedSeq.hs +++ b/libraries/ghc-boot/GHC/Data/SizedSeq.hs @@ -11,7 +11,7 @@ module GHC.Data.SizedSeq import Prelude -- See note [Why do we import Prelude here?] import Control.DeepSeq import Data.Binary -import Data.List +import Data.List (genericLength) import GHC.Generics data SizedSeq a = SizedSeq {-# UNPACK #-} !Word [a] diff --git a/libraries/ghc-heap/GHC/Exts/Heap/Utils.hsc b/libraries/ghc-heap/GHC/Exts/Heap/Utils.hsc index fab56d54d5..360a43f1c1 100644 --- a/libraries/ghc-heap/GHC/Exts/Heap/Utils.hsc +++ b/libraries/ghc-heap/GHC/Exts/Heap/Utils.hsc @@ -11,7 +11,7 @@ import GHC.Exts.Heap.Constants import GHC.Exts.Heap.InfoTable import Data.Char -import Data.List +import Data.List (intercalate) import Foreign import GHC.CString import GHC.Exts |