From ffc735c0144d6abd15d5fe67d7a2c6e4dd0e4d87 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Wed, 16 Nov 2016 14:57:51 -0800 Subject: [PATCH] elm: bump optparse-applicative and HTTP otherwise the build fails with GHC 8 Closes #6922. Signed-off-by: ilovezfs --- Formula/elm.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Formula/elm.rb b/Formula/elm.rb index dcefc5aff61..4d3b026e7d4 100644 --- a/Formula/elm.rb +++ b/Formula/elm.rb @@ -51,6 +51,18 @@ class Elm < Formula resource(extra).stage buildpath/extra end + # https://github.com/elm-lang/elm-make/pull/130 + inreplace "elm-make/elm-make.cabal", "optparse-applicative >=0.11 && <0.12,", + "optparse-applicative >=0.11 && <0.14," # 0.13.0.0 is current + + # https://github.com/elm-lang/elm-package/pull/252 + inreplace "elm-package/elm-package.cabal" do |s| + s.gsub! "optparse-applicative >= 0.11 && < 0.12,", + "optparse-applicative >= 0.11 && < 0.14," # 0.13.0.0 is current + s.gsub! "HTTP >= 4000.2.5 && < 4000.3,", + "HTTP >= 4000.2.5 && < 4000.4," # 4000.3.3 is current + end + cabal_sandbox do cabal_sandbox_add_source "elm-compiler", *extras cabal_install "--only-dependencies", "elm-compiler", *extras