Skip to content

Commit

Permalink
dev: web: fix build with ghc <9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichael committed Sep 30, 2024
1 parent 36442b3 commit 7b1ef10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hledger-web/Hledger/Web/Handler/RegisterR.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

module Hledger.Web.Handler.RegisterR where

import qualified Data.List.NonEmpty as NonEmpty
import qualified Data.List.NonEmpty.Compat as NonEmpty -- from base-compat for ghc 8.10
import Data.List (intersperse, nub, partition)
import qualified Data.Text as T
import Text.Hamlet (hamletFile)
Expand Down
3 changes: 3 additions & 0 deletions hledger-web/hledger-web.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ library
Decimal >=0.5.1
, aeson >=1 && <2.3
, base >=4.14 && <4.21
, base-compat
, base64
, blaze-html
, blaze-markup
Expand Down Expand Up @@ -226,6 +227,7 @@ executable hledger-web
cpp-options: -DVERSION="1.40.99"
build-depends:
base >=4.14 && <4.21
, base-compat
, hledger-web
default-language: Haskell2010
if (flag(dev)) || (flag(library-only))
Expand All @@ -250,6 +252,7 @@ test-suite test
cpp-options: -DVERSION="1.40.99"
build-depends:
base >=4.14 && <4.21
, base-compat
, hledger-web
default-language: Haskell2010
if (flag(dev)) || (flag(library-only))
Expand Down
1 change: 1 addition & 0 deletions hledger-web/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ when:

dependencies:
- base >=4.14 && <4.21
- base-compat

library:
source-dirs: .
Expand Down

0 comments on commit 7b1ef10

Please sign in to comment.