From d9d13dda5ffa89c29dc48795c78a1847af5075bb Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 3 Mar 2024 14:33:32 +0800 Subject: [PATCH] Fix crash in 'ghcup tui' on windows * https://github.com/haskell/ghcup-hs/issues/1013 * https://github.com/jtdaugherty/brick/issues/502#issuecomment-1974980299 * https://github.com/chhackett/vty-windows/commit/4c395182cbbfa1bd2a6c95ad6b24e98d53338061 --- cabal.ghc8107.project | 3 +++ cabal.ghc902.project | 3 +++ cabal.ghc928.project | 3 +++ cabal.ghc948.project | 3 +++ cabal.project | 3 +++ cabal.project.release | 2 +- stack.yaml | 2 +- 7 files changed, 17 insertions(+), 2 deletions(-) diff --git a/cabal.ghc8107.project b/cabal.ghc8107.project index d321ca5e..0eb2f5eb 100644 --- a/cabal.ghc8107.project +++ b/cabal.ghc8107.project @@ -13,9 +13,12 @@ constraints: http-io-streams -brotli, any.aeson >= 2.0.1.0 if os(mingw32) + constraints: vty-windows >=0.2.0.2 + if impl(ghc >= 9.4) constraints: language-c >= 0.9.3 + source-repository-package type: git location: https://github.com/haskell/tar.git diff --git a/cabal.ghc902.project b/cabal.ghc902.project index f39a8620..d1d42037 100644 --- a/cabal.ghc902.project +++ b/cabal.ghc902.project @@ -13,9 +13,12 @@ constraints: http-io-streams -brotli, any.aeson >= 2.0.1.0 if os(mingw32) + constraints: vty-windows >=0.2.0.2 + if impl(ghc >= 9.4) constraints: language-c >= 0.9.3 + source-repository-package type: git location: https://github.com/haskell/tar.git diff --git a/cabal.ghc928.project b/cabal.ghc928.project index 98875ddd..31bde3f0 100644 --- a/cabal.ghc928.project +++ b/cabal.ghc928.project @@ -13,9 +13,12 @@ constraints: http-io-streams -brotli, any.aeson >= 2.0.1.0 if os(mingw32) + constraints: vty-windows >=0.2.0.2 + if impl(ghc >= 9.4) constraints: language-c >= 0.9.3 + source-repository-package type: git location: https://github.com/haskell/tar.git diff --git a/cabal.ghc948.project b/cabal.ghc948.project index 92fbbd8f..f1ad3599 100644 --- a/cabal.ghc948.project +++ b/cabal.ghc948.project @@ -13,9 +13,12 @@ constraints: http-io-streams -brotli, any.aeson >= 2.0.1.0 if os(mingw32) + constraints: vty-windows >=0.2.0.2 + if impl(ghc >= 9.4) constraints: language-c >= 0.9.3 + source-repository-package type: git location: https://github.com/haskell/tar.git diff --git a/cabal.project b/cabal.project index 80baa72e..b716b0cf 100644 --- a/cabal.project +++ b/cabal.project @@ -13,9 +13,12 @@ constraints: http-io-streams -brotli, any.aeson >= 2.0.1.0 if os(mingw32) + constraints: vty-windows >=0.2.0.2 + if impl(ghc >= 9.4) constraints: language-c >= 0.9.3 + source-repository-package type: git location: https://github.com/haskell/tar.git diff --git a/cabal.project.release b/cabal.project.release index 1e909a32..647be075 100644 --- a/cabal.project.release +++ b/cabal.project.release @@ -18,7 +18,7 @@ elif os(mingw32) constraints: zlib +bundled-c-zlib, lzma +static, text -simdutf, - vty-windows >=0.1.0.3 + vty-windows >=0.2.0.2 if impl(ghc >= 9.4) constraints: language-c >= 0.9.3 elif os(freebsd) diff --git a/stack.yaml b/stack.yaml index 19a35c09..e7021abc 100644 --- a/stack.yaml +++ b/stack.yaml @@ -37,7 +37,7 @@ extra-deps: - vty-6.2@sha256:3536dc83a3fee17d9a114baf58fe47b6f080c24987266f0cd0b7b4b1fcd9cf19,3520 - vty-crossplatform-0.4.0.0@sha256:50593f91ad16777d921138475a8d2784d538fd206addd30664c620278d6c8544,3172 - vty-unix-0.2.0.0@sha256:2af3d0bdae3c4b7b7e567ee374efe32c7439fabdf9096465ce011a6c6736e9ae,2932 - - vty-windows-0.2.0.1@sha256:6c75230057a708168dbc420975572511ad3ec09956bf73c3b6f4be03324e8b13,2815 + - vty-windows-0.2.0.2 - yaml-streamly-0.12.4@sha256:b5250c5dc71d668c43c42ed6f86f956d69125136ea960858527a4b2ff712d3d1,5165 - github: hasufell/uri-bytestring commit: 4fb5ed14b500c192e6e7a97f6b2b1eb478806001