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 /compiler/nativeGen/SPARC | |
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 'compiler/nativeGen/SPARC')
-rw-r--r-- | compiler/nativeGen/SPARC/CodeGen.hs | 1 | ||||
-rw-r--r-- | compiler/nativeGen/SPARC/CodeGen/Base.hs | 2 | ||||
-rw-r--r-- | compiler/nativeGen/SPARC/CodeGen/Expand.hs | 1 | ||||
-rw-r--r-- | compiler/nativeGen/SPARC/CodeGen/Gen64.hs | 2 | ||||
-rw-r--r-- | compiler/nativeGen/SPARC/CodeGen/Sanity.hs | 2 | ||||
-rw-r--r-- | compiler/nativeGen/SPARC/Ppr.hs | 2 |
6 files changed, 4 insertions, 6 deletions
diff --git a/compiler/nativeGen/SPARC/CodeGen.hs b/compiler/nativeGen/SPARC/CodeGen.hs index 056d0c6fbf..bb8bbe16b6 100644 --- a/compiler/nativeGen/SPARC/CodeGen.hs +++ b/compiler/nativeGen/SPARC/CodeGen.hs @@ -31,7 +31,6 @@ import SPARC.CodeGen.CondCode import SPARC.CodeGen.Gen64 import SPARC.CodeGen.Gen32 import SPARC.CodeGen.Base -import SPARC.Ppr () import SPARC.Instr import SPARC.Imm import SPARC.AddrMode diff --git a/compiler/nativeGen/SPARC/CodeGen/Base.hs b/compiler/nativeGen/SPARC/CodeGen/Base.hs index e64af0c44e..97c54a9364 100644 --- a/compiler/nativeGen/SPARC/CodeGen/Base.hs +++ b/compiler/nativeGen/SPARC/CodeGen/Base.hs @@ -25,7 +25,7 @@ import Reg import CodeGen.Platform import DynFlags import Cmm -import PprCmmExpr () +import PprCmmExpr () -- For Outputable instances import GHC.Platform import Outputable diff --git a/compiler/nativeGen/SPARC/CodeGen/Expand.hs b/compiler/nativeGen/SPARC/CodeGen/Expand.hs index 0b318740db..a29c24dcd4 100644 --- a/compiler/nativeGen/SPARC/CodeGen/Expand.hs +++ b/compiler/nativeGen/SPARC/CodeGen/Expand.hs @@ -11,7 +11,6 @@ import SPARC.Instr import SPARC.Imm import SPARC.AddrMode import SPARC.Regs -import SPARC.Ppr () import Instruction import Reg import Format diff --git a/compiler/nativeGen/SPARC/CodeGen/Gen64.hs b/compiler/nativeGen/SPARC/CodeGen/Gen64.hs index 6fa7482f9b..18df9e19a3 100644 --- a/compiler/nativeGen/SPARC/CodeGen/Gen64.hs +++ b/compiler/nativeGen/SPARC/CodeGen/Gen64.hs @@ -16,7 +16,7 @@ import SPARC.Regs import SPARC.AddrMode import SPARC.Imm import SPARC.Instr -import SPARC.Ppr() +-- import SPARC.Ppr() import NCGMonad import Instruction import Format diff --git a/compiler/nativeGen/SPARC/CodeGen/Sanity.hs b/compiler/nativeGen/SPARC/CodeGen/Sanity.hs index fcf5b65bde..7f9bfed229 100644 --- a/compiler/nativeGen/SPARC/CodeGen/Sanity.hs +++ b/compiler/nativeGen/SPARC/CodeGen/Sanity.hs @@ -9,7 +9,7 @@ where import GhcPrelude import SPARC.Instr -import SPARC.Ppr () +import SPARC.Ppr () -- For Outputable instances import Instruction import Cmm diff --git a/compiler/nativeGen/SPARC/Ppr.hs b/compiler/nativeGen/SPARC/Ppr.hs index fc67f77541..2bec7ec01f 100644 --- a/compiler/nativeGen/SPARC/Ppr.hs +++ b/compiler/nativeGen/SPARC/Ppr.hs @@ -39,7 +39,7 @@ import Format import PprBase import Cmm hiding (topInfoTable) -import PprCmm() +import PprCmm() -- For Outputable instances import BlockId import CLabel import Hoopl.Label |