From e8f2a26741bfa0c15c19a590c8a6c1af8b1a6efd Mon Sep 17 00:00:00 2001 From: Dennis Frieberg Date: Wed, 23 Sep 2020 13:37:37 +0200 Subject: [PATCH] enable cpphs for conditional compilations --- package.yaml | 6 ++++++ tickLeisteServer.cabal | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/package.yaml b/package.yaml index 27d06ee..6eb24b7 100644 --- a/package.yaml +++ b/package.yaml @@ -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: diff --git a/tickLeisteServer.cabal b/tickLeisteServer.cabal index 8fa51b3..20d2853 100644 --- a/tickLeisteServer.cabal +++ b/tickLeisteServer.cabal @@ -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