fix:web: fix a cabal file ghc-options issue that hackage now rejects
This commit is contained in:
parent
96fea6cf5e
commit
a953120fbf
@ -209,7 +209,7 @@ library
|
|||||||
, yesod-test
|
, yesod-test
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
if flag(threaded)
|
if flag(threaded)
|
||||||
ghc-options: -threaded -with-rtsopts=-T
|
ghc-options: -threaded
|
||||||
if (flag(dev)) || (flag(library-only))
|
if (flag(dev)) || (flag(library-only))
|
||||||
cpp-options: -DDEVELOPMENT
|
cpp-options: -DDEVELOPMENT
|
||||||
if flag(dev)
|
if flag(dev)
|
||||||
@ -223,7 +223,7 @@ executable hledger-web
|
|||||||
Paths_hledger_web
|
Paths_hledger_web
|
||||||
hs-source-dirs:
|
hs-source-dirs:
|
||||||
app
|
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"
|
cpp-options: -DVERSION="1.41.99"
|
||||||
build-depends:
|
build-depends:
|
||||||
base >=4.14 && <4.21
|
base >=4.14 && <4.21
|
||||||
@ -231,7 +231,7 @@ executable hledger-web
|
|||||||
, hledger-web
|
, hledger-web
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
if flag(threaded)
|
if flag(threaded)
|
||||||
ghc-options: -threaded -with-rtsopts=-T
|
ghc-options: -threaded
|
||||||
if (flag(dev)) || (flag(library-only))
|
if (flag(dev)) || (flag(library-only))
|
||||||
cpp-options: -DDEVELOPMENT
|
cpp-options: -DDEVELOPMENT
|
||||||
if flag(dev)
|
if flag(dev)
|
||||||
@ -254,7 +254,7 @@ test-suite test
|
|||||||
, hledger-web
|
, hledger-web
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
if flag(threaded)
|
if flag(threaded)
|
||||||
ghc-options: -threaded -with-rtsopts=-T
|
ghc-options: -threaded
|
||||||
if (flag(dev)) || (flag(library-only))
|
if (flag(dev)) || (flag(library-only))
|
||||||
cpp-options: -DDEVELOPMENT
|
cpp-options: -DDEVELOPMENT
|
||||||
if flag(dev)
|
if flag(dev)
|
||||||
|
|||||||
@ -60,7 +60,7 @@ flags:
|
|||||||
default: true
|
default: true
|
||||||
manual: false
|
manual: false
|
||||||
debug:
|
debug:
|
||||||
description: Build with GHC 9.10+'s stack traces enabled
|
description: Build with GHC 9.10+'s stack traces enabled # '
|
||||||
default: false
|
default: false
|
||||||
manual: true
|
manual: true
|
||||||
# bitrotted
|
# bitrotted
|
||||||
@ -79,7 +79,7 @@ ghc-options:
|
|||||||
|
|
||||||
when:
|
when:
|
||||||
- condition: flag(threaded)
|
- condition: flag(threaded)
|
||||||
ghc-options: -threaded -with-rtsopts=-T
|
ghc-options: -threaded
|
||||||
- condition: (flag(dev)) || (flag(library-only))
|
- condition: (flag(dev)) || (flag(library-only))
|
||||||
cpp-options: -DDEVELOPMENT
|
cpp-options: -DDEVELOPMENT
|
||||||
# This causes a warning when uploading to hackage:
|
# This causes a warning when uploading to hackage:
|
||||||
@ -162,6 +162,7 @@ executables:
|
|||||||
source-dirs: app
|
source-dirs: app
|
||||||
main: main.hs
|
main: main.hs
|
||||||
cpp-options: -DVERSION="1.41.99"
|
cpp-options: -DVERSION="1.41.99"
|
||||||
|
ghc-options: -with-rtsopts=-T # for stats command
|
||||||
dependencies:
|
dependencies:
|
||||||
- hledger-web
|
- hledger-web
|
||||||
when:
|
when:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user