Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
e6734da1
Commit
e6734da1
authored
Feb 24, 2015
by
Ben Gamari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ghc-parser: Add GHC 7.10 parser
Unlike the previous GHC releases, now we can simply reexport the parsers
parent
86ed34ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
1 deletion
+46
-1
ghc-parser.cabal
ghc-parser/ghc-parser.cabal
+4
-1
HappyParser.hs
ghc-parser/src-7.10/Language/Haskell/GHC/HappyParser.hs
+42
-0
No files found.
ghc-parser/ghc-parser.cabal
View file @
e6734da1
...
@@ -38,6 +38,9 @@ library
...
@@ -38,6 +38,9 @@ library
if impl(ghc >= 7.8) && impl(ghc < 7.8.3)
if impl(ghc >= 7.8) && impl(ghc < 7.8.3)
hs-source-dirs: generic-src src-7.8.2
hs-source-dirs: generic-src src-7.8.2
else
else
hs-source-dirs: generic-src src-7.8.3
if impl(ghc < 7.10)
hs-source-dirs: generic-src src-7.8.3
else
hs-source-dirs: generic-src src-7.10
default-language: Haskell2010
default-language: Haskell2010
ghc-parser/src-7.10/Language/Haskell/GHC/HappyParser.hs
0 → 100644
View file @
e6734da1
module
Language.Haskell.GHC.HappyParser
(
fullStatement
,
fullImport
,
fullDeclaration
,
fullExpression
,
fullTypeSignature
,
fullModule
)
where
import
Parser
import
SrcLoc
-- compiler/hsSyn
import
HsSyn
-- compiler/utils
import
OrdList
-- compiler/parser
import
RdrHsSyn
import
Lexer
-- compiler/basicTypes
import
RdrName
fullStatement
::
P
(
Maybe
(
LStmt
RdrName
(
LHsExpr
RdrName
)))
fullStatement
=
parseStmt
fullImport
::
P
(
LImportDecl
RdrName
)
fullImport
=
parseImport
fullDeclaration
::
P
(
OrdList
(
LHsDecl
RdrName
))
fullDeclaration
=
parseDeclaration
fullExpression
::
P
(
LHsExpr
RdrName
)
fullExpression
=
parseExpression
fullTypeSignature
::
P
(
Located
(
OrdList
(
LHsDecl
RdrName
)))
fullTypeSignature
=
parseTypeSignature
fullModule
::
P
(
Located
(
HsModule
RdrName
))
fullModule
=
parseModule
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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