From 020f2ac45710cfb0854852d5db906b1d184781b6 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Thu, 10 Nov 2016 04:06:41 -0800 Subject: [PATCH] purescript: fix build with GHC 8.0.2 Closes #6787. Signed-off-by: ilovezfs --- Formula/purescript.rb | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Formula/purescript.rb b/Formula/purescript.rb index 4f3c0f83bc..e5dfc74c8b 100644 --- a/Formula/purescript.rb +++ b/Formula/purescript.rb @@ -5,10 +5,20 @@ class Purescript < Formula desc "Strongly typed programming language that compiles to JavaScript" homepage "http://www.purescript.org" - url "https://github.com/purescript/purescript/archive/v0.10.2.tar.gz" - sha256 "4b5663e2a5ebb7a2e432f951d0a5d0ddfa08f18304827ec33f609d9b3c1c3fe7" head "https://github.com/purescript/purescript.git" + stable do + url "https://github.com/purescript/purescript/archive/v0.10.2.tar.gz" + sha256 "4b5663e2a5ebb7a2e432f951d0a5d0ddfa08f18304827ec33f609d9b3c1c3fe7" + + # Remove for > 0.10.2 + # Upstream commit "Fix GHC 8.0.2 build" + patch do + url "https://github.com/purescript/purescript/commit/46f573a.patch" + sha256 "6a070c6890480613cf3876da34118aad9bb48c8cf5ca1f285adf69d4f9d99a1b" + end + end + bottle do sha256 "c9187e4c280bc7535b6a65392bdaa438435e3b39383faf0ec5d3eb4e488780e1" => :el_capitan_or_later sha256 "9fbb0bbca5cf06ba4b2a4df4df0410fedf4b0331087343b92a7123e91c2e4c9a" => :yosemite