From 5bf48d721a80388e4bafc85190a6df8c8d800f46 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 19 Oct 2024 18:50:27 -1000 Subject: [PATCH] cabal: update cabal files --- hledger-lib/hledger-lib.cabal | 14 +++++++------- hledger-ui/hledger-ui.cabal | 10 +++++----- hledger-web/hledger-web.cabal | 22 +++++++++++----------- hledger/hledger.cabal | 20 ++++++++++---------- 4 files changed, 33 insertions(+), 33 deletions(-) diff --git a/hledger-lib/hledger-lib.cabal b/hledger-lib/hledger-lib.cabal index cab8fb49c..7399a194e 100644 --- a/hledger-lib/hledger-lib.cabal +++ b/hledger-lib/hledger-lib.cabal @@ -45,7 +45,7 @@ source-repository head type: git location: https://github.com/simonmichael/hledger -flag ghcdebug +flag debug description: Build with support for attaching a ghc-debug client manual: True default: False @@ -170,8 +170,8 @@ library if (!(os(windows))) build-depends: pager >=0.1.1.0 - if (flag(ghcdebug)) - cpp-options: -DGHCDEBUG + if (flag(debug)) + cpp-options: -DDEBUG build-depends: ghc-debug-stub >=0.6.0.0 && <0.7 @@ -235,8 +235,8 @@ test-suite doctest if (!(os(windows))) build-depends: pager >=0.1.1.0 - if (flag(ghcdebug)) - cpp-options: -DGHCDEBUG + if (flag(debug)) + cpp-options: -DDEBUG build-depends: ghc-debug-stub >=0.6.0.0 && <0.7 if impl(ghc >= 9.0) && impl(ghc < 9.2) @@ -303,7 +303,7 @@ test-suite unittest if (!(os(windows))) build-depends: pager >=0.1.1.0 - if (flag(ghcdebug)) - cpp-options: -DGHCDEBUG + if (flag(debug)) + cpp-options: -DDEBUG build-depends: ghc-debug-stub >=0.6.0.0 && <0.7 diff --git a/hledger-ui/hledger-ui.cabal b/hledger-ui/hledger-ui.cabal index 4108429b4..489fe5168 100644 --- a/hledger-ui/hledger-ui.cabal +++ b/hledger-ui/hledger-ui.cabal @@ -39,7 +39,7 @@ source-repository head type: git location: https://github.com/simonmichael/hledger -flag ghcdebug +flag debug description: Build with support for attaching a ghc-debug client manual: True default: False @@ -105,8 +105,8 @@ library , vty >=6.1 && <6.3 , vty-crossplatform >=0.4.0.0 && <0.5.0.0 default-language: Haskell2010 - if (flag(ghcdebug)) - cpp-options: -DGHCDEBUG + if (flag(debug)) + cpp-options: -DDEBUG build-depends: ghc-debug-stub >=0.6.0.0 && <0.7 if os(windows) @@ -128,8 +128,8 @@ executable hledger-ui base >=4.14 && <4.21 , hledger-ui default-language: Haskell2010 - if (flag(ghcdebug)) - cpp-options: -DGHCDEBUG + if (flag(debug)) + cpp-options: -DDEBUG build-depends: ghc-debug-stub >=0.6.0.0 && <0.7 if flag(threaded) diff --git a/hledger-web/hledger-web.cabal b/hledger-web/hledger-web.cabal index 876973912..c3e2d03b0 100644 --- a/hledger-web/hledger-web.cabal +++ b/hledger-web/hledger-web.cabal @@ -112,16 +112,16 @@ source-repository head type: git location: https://github.com/simonmichael/hledger +flag debug + description: Build with support for attaching a ghc-debug client + manual: True + default: False + flag dev description: Turn on development settings, like auto-reload templates. manual: False default: False -flag ghcdebug - description: Build with support for attaching a ghc-debug client - manual: True - default: False - flag library-only description: Build for use with "yesod devel" manual: False @@ -212,8 +212,8 @@ library cpp-options: -DDEVELOPMENT if flag(dev) ghc-options: -O0 - if (flag(ghcdebug)) - cpp-options: -DGHCDEBUG + if (flag(debug)) + cpp-options: -DDEBUG build-depends: ghc-debug-stub >=0.6.0.0 && <0.7 @@ -234,8 +234,8 @@ executable hledger-web cpp-options: -DDEVELOPMENT if flag(dev) ghc-options: -O0 - if (flag(ghcdebug)) - cpp-options: -DGHCDEBUG + if (flag(debug)) + cpp-options: -DDEBUG build-depends: ghc-debug-stub >=0.6.0.0 && <0.7 if flag(library-only) @@ -259,7 +259,7 @@ test-suite test cpp-options: -DDEVELOPMENT if flag(dev) ghc-options: -O0 - if (flag(ghcdebug)) - cpp-options: -DGHCDEBUG + if (flag(debug)) + cpp-options: -DDEBUG build-depends: ghc-debug-stub >=0.6.0.0 && <0.7 diff --git a/hledger/hledger.cabal b/hledger/hledger.cabal index 731806bc1..968478546 100644 --- a/hledger/hledger.cabal +++ b/hledger/hledger.cabal @@ -92,8 +92,8 @@ source-repository head type: git location: https://github.com/simonmichael/hledger -flag ghcdebug - description: Build with support for attaching a ghc-debug client +flag debug + description: Build with GHC 9.10+'s stack traces enabled, and with support for attaching a ghc-debug client manual: True default: False @@ -196,8 +196,8 @@ library if (!(os(windows))) && (flag(terminfo)) build-depends: terminfo - if (flag(ghcdebug)) - cpp-options: -DGHCDEBUG + if (flag(debug)) + cpp-options: -DDEBUG build-depends: ghc-debug-stub >=0.6.0.0 && <0.7 @@ -250,8 +250,8 @@ executable hledger if (!(os(windows))) && (flag(terminfo)) build-depends: terminfo - if (flag(ghcdebug)) - cpp-options: -DGHCDEBUG + if (flag(debug)) + cpp-options: -DDEBUG build-depends: ghc-debug-stub >=0.6.0.0 && <0.7 if flag(threaded) @@ -305,8 +305,8 @@ test-suite unittest if (!(os(windows))) && (flag(terminfo)) build-depends: terminfo - if (flag(ghcdebug)) - cpp-options: -DGHCDEBUG + if (flag(debug)) + cpp-options: -DDEBUG build-depends: ghc-debug-stub >=0.6.0.0 && <0.7 @@ -360,7 +360,7 @@ benchmark bench if (!(os(windows))) && (flag(terminfo)) build-depends: terminfo - if (flag(ghcdebug)) - cpp-options: -DGHCDEBUG + if (flag(debug)) + cpp-options: -DDEBUG build-depends: ghc-debug-stub >=0.6.0.0 && <0.7