diff options
author | James Foster <ratherforky@gmail.com> | 2019-08-15 01:00:17 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-08-15 12:01:43 -0400 |
commit | ca71d5514626dbfd74a3d9931c2ecbd02b5343bc (patch) | |
tree | fb55fdc11fa471cf5b8c95d9923f45f6ffc2ccf1 /libraries | |
parent | 6329c70a36242849540c93b34903f6188b0ed477 (diff) | |
download | haskell-ca71d5514626dbfd74a3d9931c2ecbd02b5343bc.tar.gz |
Remove unused imports of the form 'import foo ()' (Fixes #17065)
These kinds of imports are necessary in some cases such as
importing instances of typeclasses or intentionally creating
dependencies in the build system, but '-Wunused-imports' can't
detect when they are no longer needed. This commit removes the
unused ones currently in the code base (not including test files
or submodules), with the hope that doing so may increase
parallelism in the build system by removing unnecessary
dependencies.
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/base/GHC/Err.hs | 1 | ||||
-rw-r--r-- | libraries/ghc-prim/GHC/Magic.hs | 1 | ||||
-rw-r--r-- | libraries/ghci/GHCi/Message.hs | 2 |
3 files changed, 1 insertions, 3 deletions
diff --git a/libraries/base/GHC/Err.hs b/libraries/base/GHC/Err.hs index 26e3f2059d..17b5b8ec41 100644 --- a/libraries/base/GHC/Err.hs +++ b/libraries/base/GHC/Err.hs @@ -23,7 +23,6 @@ ----------------------------------------------------------------------------- module GHC.Err( absentErr, error, errorWithoutStackTrace, undefined ) where -import GHC.CString () import GHC.Types (Char, RuntimeRep) import GHC.Stack.Types import GHC.Prim diff --git a/libraries/ghc-prim/GHC/Magic.hs b/libraries/ghc-prim/GHC/Magic.hs index 2cc3212d95..403c3f0cca 100644 --- a/libraries/ghc-prim/GHC/Magic.hs +++ b/libraries/ghc-prim/GHC/Magic.hs @@ -39,7 +39,6 @@ module GHC.Magic ( inline, noinline, lazy, oneShot, runRW# ) where import GHC.Prim (realWorld#) #endif import GHC.Prim (State#, RealWorld) -import GHC.CString () import GHC.Types (RuntimeRep, TYPE) -- | The call @inline f@ arranges that @f@ is inlined, regardless of diff --git a/libraries/ghci/GHCi/Message.hs b/libraries/ghci/GHCi/Message.hs index d8c27b0702..70c532fc94 100644 --- a/libraries/ghci/GHCi/Message.hs +++ b/libraries/ghci/GHCi/Message.hs @@ -25,7 +25,7 @@ module GHCi.Message import Prelude -- See note [Why do we import Prelude here?] import GHCi.RemoteTypes import GHCi.FFI -import GHCi.TH.Binary () +import GHCi.TH.Binary () -- For Binary instances import GHCi.BreakArray import GHC.LanguageExtensions |