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 - http-types
- warp - warp
build-tools:
- cpphs
executables: executables:
tickLeisteServer: tickLeisteServer:
main: Main.hs main: Main.hs
@ -42,6 +45,9 @@ executables:
- -threaded - -threaded
- -rtsopts - -rtsopts
- -with-rtsopts=-N - -with-rtsopts=-N
- -cpp
- -pgmP cpphs
- -optP --cpp
tests: tests:
tickLeisteServer-test: tickLeisteServer-test:

View file

@ -31,7 +31,9 @@ executable tickLeisteServer
Paths_tickLeisteServer Paths_tickLeisteServer
hs-source-dirs: hs-source-dirs:
app 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: build-depends:
aeson aeson
, base >=4.7 && <5 , base >=4.7 && <5
@ -56,6 +58,8 @@ test-suite tickLeisteServer-test
hs-source-dirs: hs-source-dirs:
test test
ghc-options: -threaded -rtsopts -with-rtsopts=-N ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-tools:
cpphs
build-depends: build-depends:
aeson aeson
, base >=4.7 && <5 , base >=4.7 && <5