summaryrefslogtreecommitdiff
path: root/lambdacube-compiler.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'lambdacube-compiler.cabal')
-rw-r--r--lambdacube-compiler.cabal38
1 files changed, 37 insertions, 1 deletions
diff --git a/lambdacube-compiler.cabal b/lambdacube-compiler.cabal
index aa5ac44d..ad4a64e9 100644
--- a/lambdacube-compiler.cabal
+++ b/lambdacube-compiler.cabal
@@ -16,6 +16,10 @@ Flag profiling
16 Description: Enable profiling 16 Description: Enable profiling
17 Default: False 17 Default: False
18 18
19Flag coverage
20 Description: Enable coverage reporting
21 Default: False
22
19library 23library
20 exposed-modules: 24 exposed-modules:
21 -- Compiler 25 -- Compiler
@@ -87,6 +91,8 @@ executable lambdacube-compiler-unit-tests
87executable lambdacube-compiler-test-suite 91executable lambdacube-compiler-test-suite
88 hs-source-dirs: test 92 hs-source-dirs: test
89 main-is: runTests.hs 93 main-is: runTests.hs
94 default-language: Haskell2010
95 GHC-Options: -O2
90 96
91 -- CAUTION: When the build-depends change, please bump the git submodule in lambdacube-docker repository 97 -- CAUTION: When the build-depends change, please bump the git submodule in lambdacube-docker repository
92 build-depends: 98 build-depends:
@@ -107,8 +113,38 @@ executable lambdacube-compiler-test-suite
107 text >= 1.2 && <1.3, 113 text >= 1.2 && <1.3,
108 lambdacube-ir, 114 lambdacube-ir,
109 vector >= 0.11 && <0.12 115 vector >= 0.11 && <0.12
110 default-language: Haskell2010 116
117
118executable lambdacube-compiler-coverage-test-suite
119 hs-source-dirs: src, test
120 main-is: runTests.hs
121 default-language: Haskell2010
122
123 if flag(coverage)
124 Buildable: True
125 else
126 Buildable: False
127
111 if flag(profiling) 128 if flag(profiling)
112 GHC-Options: -O2 -fhpc -hpcdir dist/hpc/lambdacube-compiler -prof -fprof-auto -rtsopts 129 GHC-Options: -O2 -fhpc -hpcdir dist/hpc/lambdacube-compiler -prof -fprof-auto -rtsopts
113 else 130 else
114 GHC-Options: -O2 -fhpc -hpcdir dist/hpc/lambdacube-compiler 131 GHC-Options: -O2 -fhpc -hpcdir dist/hpc/lambdacube-compiler
132
133 -- CAUTION: When the build-depends change, please bump the git submodule in lambdacube-docker repository
134 build-depends:
135 aeson >= 0.9 && <1,
136 async >= 2.0 && <2.1,
137 base < 4.9,
138 containers >=0.5 && <0.6,
139 deepseq,
140 directory,
141 exceptions >= 0.8 && <0.9,
142 filepath,
143 mtl >=2.2 && <2.3,
144 monad-control >= 1.0 && <1.1,
145 parsec >= 3.1 && <3.2,
146 indentation >= 0.2 && <0.3,
147 pretty-compact >=1.0 && <1.1,
148 text >= 1.2 && <1.3,
149 lambdacube-ir,
150 vector >= 0.11 && <0.12