[Git][ghc/ghc][wip/backports] hadrian: Eliminate some redundant imports

Ben Gamari gitlab at gitlab.haskell.org
Fri Jun 26 17:58:11 UTC 2020



Ben Gamari pushed to branch wip/backports at Glasgow Haskell Compiler / GHC


Commits:
48734a2f by Ben Gamari at 2020-06-26T13:57:54-04:00
hadrian: Eliminate some redundant imports

- - - - -


3 changed files:

- hadrian/src/Hadrian/Utilities.hs
- hadrian/src/Settings/Builders/Cabal.hs
- hadrian/src/Settings/Builders/Ghc.hs


Changes:

=====================================
hadrian/src/Hadrian/Utilities.hs
=====================================
@@ -39,8 +39,8 @@ import Control.Monad.Extra
 import Data.Char
 import Data.Dynamic (Dynamic, fromDynamic, toDyn)
 import Data.HashMap.Strict (HashMap)
+import Data.List.Extra (repeatedly, dropWhileEnd)
 import Data.List (isPrefixOf)
-import Data.List.Extra
 import Data.Maybe
 import Data.Typeable (TypeRep, typeOf)
 import Development.Shake hiding (Normal)


=====================================
hadrian/src/Settings/Builders/Cabal.hs
=====================================
@@ -1,6 +1,5 @@
 module Settings.Builders.Cabal (cabalBuilderArgs) where
 
-import Hadrian.Builder (getBuilderPath, needBuilder)
 import Hadrian.Haskell.Cabal
 
 import Builder


=====================================
hadrian/src/Settings/Builders/Ghc.hs
=====================================
@@ -2,8 +2,6 @@
 
 module Settings.Builders.Ghc (ghcBuilderArgs, haddockGhcArgs) where
 
-import Data.List.Extra (splitOn)
-
 import Hadrian.Haskell.Cabal
 import Hadrian.Haskell.Cabal.Type
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/48734a2f752b6bd130b9bd3d4dc88bb18f53c26f

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/48734a2f752b6bd130b9bd3d4dc88bb18f53c26f
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200626/03802af5/attachment-0001.html>


More information about the ghc-commits mailing list