From 03652f9ddb17d49425cd80ac33baca442e713ab1 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Mon, 12 Sep 2022 22:52:15 -0700 Subject: [PATCH] haskell-stack: build with `ghc@8.10` (#110460) --- Formula/haskell-stack.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Formula/haskell-stack.rb b/Formula/haskell-stack.rb index ee7ca6fde85..2e55ac930e9 100644 --- a/Formula/haskell-stack.rb +++ b/Formula/haskell-stack.rb @@ -7,6 +7,13 @@ class HaskellStack < Formula stable do url "https://github.com/commercialhaskell/stack/archive/v2.7.5.tar.gz" sha256 "7e77a91c9e2366b6be292188c1a36c96f8830f8a5f4a079fae7f73b9b0d2c8b6" + + # Fix build using cabal by adding upper bound for persistent. + # Remove in the next release + patch do + url "https://github.com/commercialhaskell/stack/commit/f2daad981556e9065e63de417504aabaa0f0a10a.patch?full_index=1" + sha256 "7775284eee5ee902bb0ac0368fab69aa3f179e5e33e2332638c5bf4b373a3542" + end end livecheck do @@ -24,7 +31,7 @@ class HaskellStack < Formula end depends_on "cabal-install" => :build - depends_on "ghc" => :build + depends_on "ghc@8.10" => :build # TODO: Switch to `ghc` on next release uses_from_macos "zlib"