From deda8b63b9c76f3f9a267d0a707639491221c391 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Thu, 27 Oct 2016 05:01:18 -0700 Subject: [PATCH] pandoc-citeproc 0.10.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Constraining aeson to < 1.0.0.0 avoids ``` src/Text/CSL/Reference.hs:386:8: error: • Overlapping instances for FromJSON [Agent] arising from a use of ‘.:?’ Matching instances: instance FromJSON a => FromJSON [a] -- Defined in ‘aeson-1.0.2.1:Data.Aeson.Types.FromJSON’ instance FromJSON [Agent] -- Defined at src/Text/CSL/Style.hs:907:10 • In the first argument of ‘(.!=)’, namely ‘v .:? "author"’ In the second argument of ‘(<*>)’, namely ‘v .:? "author" .!= []’ In the first argument of ‘(<*>)’, namely ‘Reference <$> v .:? "id" .!= "" <*> v .:? "type" .!= NoType <*> v .:? "author" .!= []’ ``` Solver ends up choosing aeson-0.11.2.1, the same as lts-7.4, which is what upstream specifies in stack.yaml Closes #6322. Signed-off-by: ilovezfs --- Formula/pandoc-citeproc.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Formula/pandoc-citeproc.rb b/Formula/pandoc-citeproc.rb index b763bb1652..00c08232e2 100644 --- a/Formula/pandoc-citeproc.rb +++ b/Formula/pandoc-citeproc.rb @@ -5,8 +5,8 @@ class PandocCiteproc < Formula desc "Library and executable for using citeproc with pandoc" homepage "https://github.com/jgm/pandoc-citeproc" - url "https://hackage.haskell.org/package/pandoc-citeproc-0.10.1/pandoc-citeproc-0.10.1.tar.gz" - sha256 "ebc3eb3ff95e97ebd46c0918a65db2da021de2a70d02dc85ca5b344ea5c21205" + url "https://hackage.haskell.org/package/pandoc-citeproc-0.10.2.1/pandoc-citeproc-0.10.2.1.tar.gz" + sha256 "025f88b4e1d5014692d1703d897f145a107752033d7aef202cac18b4d7887f5f" head "https://github.com/jgm/pandoc-citeproc.git" bottle do @@ -21,6 +21,12 @@ class PandocCiteproc < Formula depends_on "pandoc" def install + # Build error with aeson >= 1.0.0.0: "Overlapping instances for FromJSON" + # Reported 27 Oct 2016 https://github.com/jgm/pandoc-citeproc/issues/263 + inreplace "pandoc-citeproc.cabal", + "aeson >= 0.7 && < 1.1, text, vector,", + "aeson >= 0.7 && < 1.0.0.0, text, vector," + args = [] args << "--constraint=cryptonite -support_aesni" if MacOS.version <= :lion install_cabal_package *args