From 55d47ceacdfc48c661edc97d93d5bbe6d0f9538b Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 5 Sep 2024 23:00:39 +0100 Subject: [PATCH] fix:pkg:ui: avoid brick 2.3.2 which doesn't build on windows That version depends on unix as well as unix-compat. --- hledger-ui/hledger-ui.cabal | 2 +- hledger-ui/package.yaml | 2 +- stack.yaml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hledger-ui/hledger-ui.cabal b/hledger-ui/hledger-ui.cabal index efddf3c98..42f2bce97 100644 --- a/hledger-ui/hledger-ui.cabal +++ b/hledger-ui/hledger-ui.cabal @@ -78,7 +78,7 @@ library ansi-terminal >=0.9 , async , base >=4.14 && <4.20 - , brick >=2.1.1 && <2.5 + , brick >=2.1.1 && <2.3.2 || >2.3.2 && <2.5 , cmdargs >=0.8 , containers >=0.5.9 , data-default diff --git a/hledger-ui/package.yaml b/hledger-ui/package.yaml index 370f6d22f..738ff24fb 100644 --- a/hledger-ui/package.yaml +++ b/hledger-ui/package.yaml @@ -109,7 +109,7 @@ library: - time >=1.5 - transformers - vector - - brick >=2.1.1 && <2.5 + - brick >=2.1.1 && <2.3.2 || >2.3.2 && < 2.5 - vty >=6.1 && <6.3 - vty-crossplatform >= 0.4.0.0 && < 0.5.0.0 when: diff --git a/stack.yaml b/stack.yaml index 753df5519..f2adc2bbb 100644 --- a/stack.yaml +++ b/stack.yaml @@ -12,6 +12,8 @@ extra-deps: # needed only for dev builds when the ghcdebug flag is enabled: - ghc-debug-convention-0.6.0.0 - ghc-debug-stub-0.6.0.0 +# avoid brick 2.3.2 which doesn't build on windows +- brick-2.4 nix: pure: false