fix:web: fix a cabal file ghc-options issue that hackage now rejects

This commit is contained in:
Simon Michael 2025-03-07 07:49:21 -10:00
parent 96fea6cf5e
commit a953120fbf
2 changed files with 7 additions and 6 deletions

View File

@ -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)

View File

@ -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: