enable cpphs for conditional compilations

This commit is contained in:
Dennis Frieberg 2020-09-23 13:37:37 +02:00
parent 84954c062d
commit e8f2a26741
2 changed files with 11 additions and 1 deletions

View file

@ -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:

View file

@ -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