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