diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2015-10-30 09:45:16 +0000 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2015-10-30 09:45:50 +0000 |
commit | da58d1517ce9c57514f7b2bd7d444c9e3051a717 (patch) | |
tree | 91a72ebe8f24444dc28fd7e9f7a624298dbebc32 | |
parent | 3e94842d4d1258fbd6a1202bf74d41ce1d01c753 (diff) | |
download | haskell-da58d1517ce9c57514f7b2bd7d444c9e3051a717.tar.gz |
Kill redundant import
I don't really understand this. GHC.hs had:
module GHC( ..., module HsSyn, ... ) where
import HsSyn
import qualified HsSyn -- hack as we want to reexport the whole module
GHC now reports the 'import qualified' line as redundant; and it certainly
is, because 'import HsSyn' brings everything into scope qualified *and*
unqualified. I have no idea why the "hack" was necessary before, but
following my refactoring of tcg_used_gres (previous commit), it's reported
as redundant, so I've deleted it.
I'm making it a separate commit because it seems a bit mysterious and I
wanted to draw attention to it.
-rw-r--r-- | compiler/main/GHC.hs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs index 1f7b1173cb..f64796069f 100644 --- a/compiler/main/GHC.hs +++ b/compiler/main/GHC.hs @@ -302,7 +302,6 @@ import TcRnTypes import Packages import NameSet import RdrName -import qualified HsSyn -- hack as we want to reexport the whole module import HsSyn import Type hiding( typeKind ) import Kind ( tyConResKind ) |