Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
dafe7943
Commit
dafe7943
authored
Sep 22, 2020
by
Sylvain Henry
Committed by
Marge Bot
Oct 01, 2020
Browse files
Parser: remove some unused imports
These are not reported by GHC because Happy adds {-# OPTIONS_GHC -w #-}
parent
a946c7ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/GHC/Parser.y
View file @
dafe7943
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment