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
d65ad0b0
Commit
d65ad0b0
authored
Dec 12, 2013
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated build setup to run build-parser.sh automatically
parent
0ac0c84a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
IHaskell.cabal
IHaskell.cabal
+3
-1
Setup.hs
Setup.hs
+10
-2
build-parser.sh
build-parser.sh
+7
-0
No files found.
IHaskell.cabal
View file @
d65ad0b0
...
@@ -39,7 +39,7 @@ maintainer: andrew.gibiansky@gmail.com
...
@@ -39,7 +39,7 @@ maintainer: andrew.gibiansky@gmail.com
category: Development
category: Development
build-type:
Simple
build-type:
Custom
-- Constraint on the version of Cabal needed to build this package.
-- Constraint on the version of Cabal needed to build this package.
cabal-version: >=1.8
cabal-version: >=1.8
...
@@ -75,6 +75,8 @@ library
...
@@ -75,6 +75,8 @@ library
executable IHaskell
executable IHaskell
-- .hs or .lhs file containing the Main module.
-- .hs or .lhs file containing the Main module.
main-is: Main.hs
main-is: Main.hs
build-tools: happy, cpphs
-- Modules included in this executable, other than Main.
-- Modules included in this executable, other than Main.
other-modules:
other-modules:
...
...
Setup.hs
View file @
d65ad0b0
import
Distribution.Simple
import
Distribution.Simple
import
System.Cmd
import
Control.Monad
main
::
IO
()
main
::
IO
()
main
=
defaultMain
main
=
defaultMainWithHooks
simpleUserHooks
{
preConf
=
\
args
confFlags
->
do
buildParser
preConf
simpleUserHooks
args
confFlags
}
buildParser
=
system
"./build-parser.sh"
build-parser.sh
View file @
d65ad0b0
#!/bin/sh
#!/bin/sh
# Called from Setup.hs.
# Preprocess the GHC parser we're using to CPP subs.
cpphs
--linepragma
--text
HaskellParser.y.pp
-OParser
.y
cpphs
--linepragma
--text
HaskellParser.y.pp
-OParser
.y
# Compile the parser and remove intermediate file.
happy Parser.y
happy Parser.y
rm
Parser.y
rm
Parser.y
# Move output Haskell to source directory.
mkdir
-p
IHaskell/GHC
mkdir
-p
IHaskell/GHC
mv
Parser.hs IHaskell/GHC/HaskellParser.hs
mv
Parser.hs IHaskell/GHC/HaskellParser.hs
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