diff --git a/hledger-lib/package.yaml b/hledger-lib/package.yaml index 7244634d259..a4be3968b64 100644 --- a/hledger-lib/package.yaml +++ b/hledger-lib/package.yaml @@ -39,7 +39,7 @@ extra-source-files: #data-files: dependencies: -- base >=4.14 && <4.19 +- base >=4.14 && <4.20 - base-compat - aeson >=1 && <2.3 - aeson-pretty diff --git a/hledger-ui/package.yaml b/hledger-ui/package.yaml index 68df70099ea..95d3c1c0c6f 100644 --- a/hledger-ui/package.yaml +++ b/hledger-ui/package.yaml @@ -49,7 +49,7 @@ ghc-options: - -Wno-unused-do-bind dependencies: -- base >=4.14 && <4.19 +- base >=4.14 && <4.20 # curses is required to build terminfo for vty for hledger-ui. # On POSIX systems it might be not present. @@ -98,7 +98,7 @@ library: - time >=1.5 - transformers - vector - - brick >=2.1.1 && <2.3 + - brick >=2.1.1 && <2.4 - vty >=6.1 && <6.2 - vty-crossplatform >= 0.4.0.0 && < 0.5.0.0 when: @@ -114,7 +114,7 @@ executables: source-dirs: app main: hledger-ui.hs dependencies: - - base >=4.14 && <4.19 + - base >=4.14 && <4.20 - hledger-ui when: - condition: flag(threaded) diff --git a/hledger-web/Hledger/Web/Handler/RegisterR.hs b/hledger-web/Hledger/Web/Handler/RegisterR.hs index a1d68e7b0ed..8a5af27b01c 100644 --- a/hledger-web/Hledger/Web/Handler/RegisterR.hs +++ b/hledger-web/Hledger/Web/Handler/RegisterR.hs @@ -11,6 +11,7 @@ module Hledger.Web.Handler.RegisterR where import Data.List (intersperse, nub, partition) import qualified Data.Text as T +import Safe (tailDef) import Text.Hamlet (hamletFile) import Hledger @@ -44,7 +45,7 @@ getRegisterR = do addCommas xs = zip xs $ zip (map (T.unpack . accountSummarisedName . paccount) xs) $ - tail $ (", "<$xs) ++ [""] + tailDef [""] $ (", "<$xs) items = styleAmounts (journalCommodityStylesWith HardRounding j) $ accountTransactionsReport rspec{_rsQuery=q} j acctQuery diff --git a/hledger-web/package.yaml b/hledger-web/package.yaml index 7ba8bc341e3..d9ba5a2183f 100644 --- a/hledger-web/package.yaml +++ b/hledger-web/package.yaml @@ -78,7 +78,7 @@ when: ghc-options: -O0 dependencies: -- base >=4.14 && <4.19 +- base >=4.14 && <4.20 library: source-dirs: . diff --git a/hledger/Hledger/Cli/Script.hs b/hledger/Hledger/Cli/Script.hs index e708a1fbd2e..3745e9737bc 100644 --- a/hledger/Hledger/Cli/Script.hs +++ b/hledger/Hledger/Cli/Script.hs @@ -15,7 +15,7 @@ import Control.Concurrent as M import Control.Monad as M import Data.Char as M import Data.Either as M -import Data.Functor as M +import Data.Functor as M hiding (unzip) import Data.List as M import Data.Maybe as M import Data.Ord as M diff --git a/hledger/package.yaml b/hledger/package.yaml index 738aa2fd007..ac86d6cf004 100644 --- a/hledger/package.yaml +++ b/hledger/package.yaml @@ -99,7 +99,7 @@ ghc-options: - -optP-Wno-nonportable-include-path dependencies: -- base >=4.14 && <4.19 +- base >=4.14 && <4.20 - hledger-lib >=1.32.99 && <1.33 - aeson >=1 && <2.3 - ansi-terminal >=0.9 diff --git a/stack9.8.yaml b/stack9.8.yaml index 8aa788f55f1..c8c51d612b3 100644 --- a/stack9.8.yaml +++ b/stack9.8.yaml @@ -1,20 +1,37 @@ -# stack build plan using GHC 9.8.1 (WIP) +# stack build plan using GHC 9.8.1 -resolver: ghc-9.8.1 +resolver: nightly-2024-01-04 packages: - hledger-lib -# - hledger -# - hledger-ui -# - hledger-web +- hledger +# blocked by https://github.com/luite/hfsevents/issues/16 +#- hledger-ui +- hledger-web + +extra-deps: +- cassava-megaparsec-2.1.0 +- email-validate-2.3.2.19 +- yesod-1.6.2.1 +- yesod-form-1.7.6 + +# work around https://github.com/stackbuilders/cassava-megaparsec/issues/39 +allow-newer: true + +# not working for me +# allow-newer-deps: +# - cassava-megaparsec +# - vector -# extra-deps: nix: pure: false packages: [perl gmp ncurses zlib] -# ghc-options: +ghc-options: + # silence 9.8's new partial warnings for now + "$locals": -Wno-x-partial + # "$locals": -fplugin Debug.Breakpoint # # for precise profiling, per https://www.tweag.io/posts/2020-01-30-haskell-profiling.html: