summaryrefslogtreecommitdiff
path: root/compiler/iface
diff options
context:
space:
mode:
authorJames Foster <ratherforky@gmail.com>2019-08-15 01:00:17 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-08-15 12:01:43 -0400
commitca71d5514626dbfd74a3d9931c2ecbd02b5343bc (patch)
treefb55fdc11fa471cf5b8c95d9923f45f6ffc2ccf1 /compiler/iface
parent6329c70a36242849540c93b34903f6188b0ed477 (diff)
downloadhaskell-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/iface')
-rw-r--r--compiler/iface/FlagChecker.hs1
-rw-r--r--compiler/iface/IfaceSyn.hs1
2 files changed, 0 insertions, 2 deletions
diff --git a/compiler/iface/FlagChecker.hs b/compiler/iface/FlagChecker.hs
index a9ab4c97d7..34b55e9fef 100644
--- a/compiler/iface/FlagChecker.hs
+++ b/compiler/iface/FlagChecker.hs
@@ -11,7 +11,6 @@ module FlagChecker (
import GhcPrelude
import Binary
-import BinIface ()
import DynFlags
import HscTypes
import Module
diff --git a/compiler/iface/IfaceSyn.hs b/compiler/iface/IfaceSyn.hs
index 3da0c63174..688998f96d 100644
--- a/compiler/iface/IfaceSyn.hs
+++ b/compiler/iface/IfaceSyn.hs
@@ -46,7 +46,6 @@ import GhcPrelude
import IfaceType
import BinFingerprint
import CoreSyn( IsOrphan, isOrphan )
-import PprCore() -- Printing DFunArgs
import DynFlags( gopt, GeneralFlag (Opt_PrintAxiomIncomps) )
import Demand
import Class