summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-09-22 20:12:35 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-10-01 18:36:11 -0400
commitdafe79433c2ca884da3677194ee38913ee30e8dc (patch)
treecbf695501954b8c7aa09608051ddc85c28ae24e4
parenta946c7ef9eec768878d261c20437b924cd3afda3 (diff)
downloadhaskell-dafe79433c2ca884da3677194ee38913ee30e8dc.tar.gz
Parser: remove some unused imports
These are not reported by GHC because Happy adds {-# OPTIONS_GHC -w #-}
-rw-r--r--compiler/GHC/Parser.y24
1 files changed, 9 insertions, 15 deletions
diff --git a/compiler/GHC/Parser.y b/compiler/GHC/Parser.y
index 1def306805..16eff90656 100644
--- a/compiler/GHC/Parser.y
+++ b/compiler/GHC/Parser.y
@@ -48,52 +48,46 @@ import Control.Monad ( mplus )
import Control.Applicative ((<$))
import qualified Prelude -- for happy-generated code
--- compiler
+import GHC.Prelude
+
import GHC.Hs
+import GHC.Hs.Doc
import GHC.Driver.Phases ( HscSource(..) )
-import GHC.Driver.Types ( IsBootInterface(..), WarningTxt(..) )
import GHC.Driver.Backpack.Syntax
+
+import GHC.Unit.Types ( IsBootInterface(..) )
import GHC.Unit.Info
+import GHC.Unit.Module
--- compiler/utils
import GHC.Data.OrdList
import GHC.Data.BooleanFormula ( BooleanFormula(..), LBooleanFormula(..), mkTrue )
import GHC.Data.FastString
import GHC.Data.Maybe ( isJust, orElse )
+
import GHC.Utils.Outputable
import GHC.Utils.Misc ( looksLikePackageName, fstOf3, sndOf3, thdOf3 )
-import GHC.Prelude
--- compiler/basicTypes
import GHC.Types.Name.Reader
import GHC.Types.Name.Occurrence ( varName, dataName, tcClsName, tvName,
occNameFS, startsWithUnderscore )
-import GHC.Core.DataCon ( DataCon, dataConName )
import GHC.Types.SrcLoc
-import GHC.Unit.Module
import GHC.Types.Basic
import GHC.Types.ForeignCall
-import GHC.Hs.Doc
import GHC.Core.Type ( unrestrictedFunTyCon, Mult(..), Specificity(..) )
import GHC.Core.Class ( FunDep )
+import GHC.Core.DataCon ( DataCon, dataConName )
--- compiler/parser
import GHC.Parser.PostProcess
import GHC.Parser.PostProcess.Haddock
import GHC.Parser.Lexer
import GHC.Parser.Annotation
import GHC.Parser.Errors
-import GHC.Tc.Types.Evidence ( emptyTcEvBinds )
-
--- compiler/prelude
-import GHC.Builtin.Types.Prim ( eqPrimTyCon )
import GHC.Builtin.Types ( unitTyCon, unitDataCon, tupleTyCon, tupleDataCon, nilDataCon,
unboxedUnitTyCon, unboxedUnitDataCon,
- listTyCon_RDR, consDataCon_RDR, eqTyCon_RDR,
- manyDataConTyCon)
+ listTyCon_RDR, consDataCon_RDR, eqTyCon_RDR)
}
%expect 0 -- shift/reduce conflicts