From a953120fbf3f7e6dcfcebb30ad01660155eaf1b0 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 7 Mar 2025 07:49:21 -1000 Subject: [PATCH] fix:web: fix a cabal file ghc-options issue that hackage now rejects --- hledger-web/hledger-web.cabal | 8 ++++---- hledger-web/package.yaml | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/hledger-web/hledger-web.cabal b/hledger-web/hledger-web.cabal index 76efb3e2d..b53358370 100644 --- a/hledger-web/hledger-web.cabal +++ b/hledger-web/hledger-web.cabal @@ -209,7 +209,7 @@ library , yesod-test default-language: Haskell2010 if flag(threaded) - ghc-options: -threaded -with-rtsopts=-T + ghc-options: -threaded if (flag(dev)) || (flag(library-only)) cpp-options: -DDEVELOPMENT if flag(dev) @@ -223,7 +223,7 @@ executable hledger-web Paths_hledger_web hs-source-dirs: app - ghc-options: -Wall -Wredundant-constraints -Wincomplete-record-updates -Wincomplete-uni-patterns + ghc-options: -Wall -Wredundant-constraints -Wincomplete-record-updates -Wincomplete-uni-patterns -with-rtsopts=-T cpp-options: -DVERSION="1.41.99" build-depends: base >=4.14 && <4.21 @@ -231,7 +231,7 @@ executable hledger-web , hledger-web default-language: Haskell2010 if flag(threaded) - ghc-options: -threaded -with-rtsopts=-T + ghc-options: -threaded if (flag(dev)) || (flag(library-only)) cpp-options: -DDEVELOPMENT if flag(dev) @@ -254,7 +254,7 @@ test-suite test , hledger-web default-language: Haskell2010 if flag(threaded) - ghc-options: -threaded -with-rtsopts=-T + ghc-options: -threaded if (flag(dev)) || (flag(library-only)) cpp-options: -DDEVELOPMENT if flag(dev) diff --git a/hledger-web/package.yaml b/hledger-web/package.yaml index 753b296af..cb9cf2fcf 100644 --- a/hledger-web/package.yaml +++ b/hledger-web/package.yaml @@ -60,7 +60,7 @@ flags: default: true manual: false debug: - description: Build with GHC 9.10+'s stack traces enabled + description: Build with GHC 9.10+'s stack traces enabled # ' default: false manual: true # bitrotted @@ -79,7 +79,7 @@ ghc-options: when: - condition: flag(threaded) - ghc-options: -threaded -with-rtsopts=-T + ghc-options: -threaded - condition: (flag(dev)) || (flag(library-only)) cpp-options: -DDEVELOPMENT # This causes a warning when uploading to hackage: @@ -162,6 +162,7 @@ executables: source-dirs: app main: main.hs cpp-options: -DVERSION="1.41.99" + ghc-options: -with-rtsopts=-T # for stats command dependencies: - hledger-web when: