Skip to content

Commit

Permalink
imp: stack: build with ghc 9.8, latest stackage nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichael committed Jan 4, 2024
1 parent 1648d2b commit 2a99b3d
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 15 deletions.
2 changes: 1 addition & 1 deletion hledger-lib/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions hledger-ui/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand All @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion hledger-web/Hledger/Web/Handler/RegisterR.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion hledger-web/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ when:
ghc-options: -O0

dependencies:
- base >=4.14 && <4.19
- base >=4.14 && <4.20

library:
source-dirs: .
Expand Down
2 changes: 1 addition & 1 deletion hledger/Hledger/Cli/Script.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion hledger/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 24 additions & 7 deletions stack9.8.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 2a99b3d

Please sign in to comment.