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 /utils/ghc-pkg/Main.hs | |
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 'utils/ghc-pkg/Main.hs')
-rw-r--r-- | utils/ghc-pkg/Main.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/ghc-pkg/Main.hs b/utils/ghc-pkg/Main.hs index f0d3b266d2..a0fc8772ac 100644 --- a/utils/ghc-pkg/Main.hs +++ b/utils/ghc-pkg/Main.hs @@ -79,7 +79,9 @@ import System.Environment ( getArgs, getProgName, getEnv ) import System.IO import System.IO.Error import GHC.IO.Exception (IOErrorType(InappropriateType)) -import Data.List +import Data.List ( group, sort, sortBy, nub, partition, find + , intercalate, intersperse, foldl', unfoldr + , isInfixOf, isSuffixOf, isPrefixOf, stripPrefix ) import Control.Concurrent import qualified Data.Foldable as F import qualified Data.Traversable as F |