From 728472acb363044dfa8ce15551f45c34f746ab70 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 3 Oct 2022 20:39:47 +0200 Subject: 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. --- spacecookie.cabal | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/spacecookie.cabal b/spacecookie.cabal index 178a7b1..1461a2e 100644 --- a/spacecookie.cabal +++ b/spacecookie.cabal @@ -40,12 +40,15 @@ common common-settings , directory >= 1.3 , 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 -- cgit 1.4.1