enable cpphs for conditional compilations
This commit is contained in:
parent
84954c062d
commit
e8f2a26741
2 changed files with 11 additions and 1 deletions
|
@ -34,6 +34,9 @@ dependencies:
|
|||
- http-types
|
||||
- warp
|
||||
|
||||
build-tools:
|
||||
- cpphs
|
||||
|
||||
executables:
|
||||
tickLeisteServer:
|
||||
main: Main.hs
|
||||
|
@ -42,6 +45,9 @@ executables:
|
|||
- -threaded
|
||||
- -rtsopts
|
||||
- -with-rtsopts=-N
|
||||
- -cpp
|
||||
- -pgmP cpphs
|
||||
- -optP --cpp
|
||||
|
||||
tests:
|
||||
tickLeisteServer-test:
|
||||
|
|
|
@ -31,7 +31,9 @@ executable tickLeisteServer
|
|||
Paths_tickLeisteServer
|
||||
hs-source-dirs:
|
||||
app
|
||||
ghc-options: -threaded -rtsopts -with-rtsopts=-N
|
||||
ghc-options: -threaded -rtsopts -with-rtsopts=-N -cpp -pgmP cpphs -optP --cpp
|
||||
build-tools:
|
||||
cpphs
|
||||
build-depends:
|
||||
aeson
|
||||
, base >=4.7 && <5
|
||||
|
@ -56,6 +58,8 @@ test-suite tickLeisteServer-test
|
|||
hs-source-dirs:
|
||||
test
|
||||
ghc-options: -threaded -rtsopts -with-rtsopts=-N
|
||||
build-tools:
|
||||
cpphs
|
||||
build-depends:
|
||||
aeson
|
||||
, base >=4.7 && <5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue