cabal: update cabal files

This commit is contained in:
Simon Michael 2024-05-01 13:44:10 -10:00
parent d17b32c7eb
commit 4c53ab419b
3 changed files with 54 additions and 1 deletions

View File

@ -39,6 +39,11 @@ source-repository head
type: git type: git
location: https://github.com/simonmichael/hledger location: https://github.com/simonmichael/hledger
flag ghcdebug
description: Build with support for attaching a ghc-debug client
manual: True
default: False
flag threaded flag threaded
description: Build with support for multithreaded execution description: Build with support for multithreaded execution
manual: False manual: False
@ -82,6 +87,7 @@ library
, extra >=1.6.3 , extra >=1.6.3
, filepath , filepath
, fsnotify ==0.4.* , fsnotify ==0.4.*
, githash >=0.1.6.2
, hledger >=1.33.99 && <1.34 , hledger >=1.33.99 && <1.34
, hledger-lib >=1.33.99 && <1.34 , hledger-lib >=1.33.99 && <1.34
, megaparsec >=7.0.0 && <9.7 , megaparsec >=7.0.0 && <9.7
@ -99,6 +105,10 @@ library
, vty >=6.1 && <6.3 , vty >=6.1 && <6.3
, vty-crossplatform >=0.4.0.0 && <0.5.0.0 , vty-crossplatform >=0.4.0.0 && <0.5.0.0
default-language: Haskell2010 default-language: Haskell2010
if (flag(ghcdebug))
cpp-options: -DGHCDEBUG
build-depends:
ghc-debug-stub >=0.6.0.0 && <0.7
if os(windows) if os(windows)
build-depends: build-depends:
vty-windows >=0.2.0.1 && <0.3.0.0 vty-windows >=0.2.0.1 && <0.3.0.0
@ -118,5 +128,9 @@ executable hledger-ui
base >=4.14 && <4.20 base >=4.14 && <4.20
, hledger-ui , hledger-ui
default-language: Haskell2010 default-language: Haskell2010
if (flag(ghcdebug))
cpp-options: -DGHCDEBUG
build-depends:
ghc-debug-stub >=0.6.0.0 && <0.7
if flag(threaded) if flag(threaded)
ghc-options: -threaded -with-rtsopts=-T ghc-options: -threaded -with-rtsopts=-T

View File

@ -117,6 +117,11 @@ flag dev
manual: False manual: False
default: False default: False
flag ghcdebug
description: Build with support for attaching a ghc-debug client
manual: True
default: False
flag library-only flag library-only
description: Build for use with "yesod devel" description: Build for use with "yesod devel"
manual: False manual: False
@ -170,6 +175,7 @@ library
, directory >=1.2.3.0 , directory >=1.2.3.0
, extra >=1.6.3 , extra >=1.6.3
, filepath , filepath
, githash >=0.1.6.2
, hjsmin , hjsmin
, hledger >=1.33.99 && <1.34 , hledger >=1.33.99 && <1.34
, hledger-lib >=1.33.99 && <1.34 , hledger-lib >=1.33.99 && <1.34
@ -205,6 +211,10 @@ library
cpp-options: -DDEVELOPMENT cpp-options: -DDEVELOPMENT
if flag(dev) if flag(dev)
ghc-options: -O0 ghc-options: -O0
if (flag(ghcdebug))
cpp-options: -DGHCDEBUG
build-depends:
ghc-debug-stub >=0.6.0.0 && <0.7
executable hledger-web executable hledger-web
main-is: main.hs main-is: main.hs
@ -222,6 +232,10 @@ executable hledger-web
cpp-options: -DDEVELOPMENT cpp-options: -DDEVELOPMENT
if flag(dev) if flag(dev)
ghc-options: -O0 ghc-options: -O0
if (flag(ghcdebug))
cpp-options: -DGHCDEBUG
build-depends:
ghc-debug-stub >=0.6.0.0 && <0.7
if flag(library-only) if flag(library-only)
buildable: False buildable: False
if flag(threaded) if flag(threaded)
@ -242,3 +256,7 @@ test-suite test
cpp-options: -DDEVELOPMENT cpp-options: -DDEVELOPMENT
if flag(dev) if flag(dev)
ghc-options: -O0 ghc-options: -O0
if (flag(ghcdebug))
cpp-options: -DGHCDEBUG
build-depends:
ghc-debug-stub >=0.6.0.0 && <0.7

View File

@ -84,8 +84,13 @@ source-repository head
type: git type: git
location: https://github.com/simonmichael/hledger location: https://github.com/simonmichael/hledger
flag ghcdebug
description: Build with support for attaching a ghc-debug client
manual: True
default: False
flag terminfo flag terminfo
description: On POSIX systems, build with the terminfo lib for detecting terminal width. description: On POSIX systems, build with the terminfo lib for detecting terminal width
manual: False manual: False
default: True default: True
@ -180,6 +185,10 @@ library
if (!(os(windows))) && (flag(terminfo)) if (!(os(windows))) && (flag(terminfo))
build-depends: build-depends:
terminfo terminfo
if (flag(ghcdebug))
cpp-options: -DGHCDEBUG
build-depends:
ghc-debug-stub >=0.6.0.0 && <0.7
executable hledger executable hledger
main-is: hledger-cli.hs main-is: hledger-cli.hs
@ -230,6 +239,10 @@ executable hledger
if (!(os(windows))) && (flag(terminfo)) if (!(os(windows))) && (flag(terminfo))
build-depends: build-depends:
terminfo terminfo
if (flag(ghcdebug))
cpp-options: -DGHCDEBUG
build-depends:
ghc-debug-stub >=0.6.0.0 && <0.7
if flag(threaded) if flag(threaded)
ghc-options: -threaded -with-rtsopts=-T ghc-options: -threaded -with-rtsopts=-T
@ -281,6 +294,10 @@ test-suite unittest
if (!(os(windows))) && (flag(terminfo)) if (!(os(windows))) && (flag(terminfo))
build-depends: build-depends:
terminfo terminfo
if (flag(ghcdebug))
cpp-options: -DGHCDEBUG
build-depends:
ghc-debug-stub >=0.6.0.0 && <0.7
benchmark bench benchmark bench
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
@ -332,3 +349,7 @@ benchmark bench
if (!(os(windows))) && (flag(terminfo)) if (!(os(windows))) && (flag(terminfo))
build-depends: build-depends:
terminfo terminfo
if (flag(ghcdebug))
cpp-options: -DGHCDEBUG
build-depends:
ghc-debug-stub >=0.6.0.0 && <0.7