diff options
author | sternenseemann <sternenseemann@systemli.org> | 2022-10-03 20:39:47 +0200 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2022-10-03 20:40:46 +0200 |
commit | 728472acb363044dfa8ce15551f45c34f746ab70 (patch) | |
tree | 8889657f0c2facb8a2e60ecb0c54cc4565f914d4 | |
parent | 2b8dc0798d6e2382e09612abc225a8ea183016d8 (diff) |
fix(cabal): move executable-specific settings into own common block
Cabal is a bit pedantic about not putting useless ghc-options into common blocks if they are included by a library.
-rw-r--r-- | spacecookie.cabal | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/spacecookie.cabal b/spacecookie.cabal index 178a7b1..1461a2e 100644 --- a/spacecookie.cabal +++ b/spacecookie.cabal @@ -41,11 +41,14 @@ common common-settings , filepath-bytestring >=1.4 , containers >= 0.6 ghc-options: + -Wall + -Wno-orphans + +common common-executables + ghc-options: -- Needed by curl to work reliably in the test suite -- https://github.com/GaloisInc/curl/pull/25 -threaded - -Wall - -Wno-orphans -- Limit frequency of the idle GC to every 10s -rtsopts -with-rtsopts=-I10 @@ -58,7 +61,7 @@ common gopher-dependencies , text >= 1.2 executable spacecookie - import: common-settings, gopher-dependencies + import: common-settings, common-executables, gopher-dependencies main-is: Main.hs build-depends: spacecookie , aeson >= 1.5 @@ -84,7 +87,7 @@ library , async >= 2.2 test-suite test - import: common-settings + import: common-settings, common-executables type: exitcode-stdio-1.0 main-is: EntryPoint.hs hs-source-dirs: test, server |