app-forensics/quickfuzz: tweak for derive-2.6
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 20 Aug 2017 16:07:34 +0000 (17:07 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 20 Aug 2017 16:08:12 +0000 (17:08 +0100)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

app-forensics/quickfuzz/files/quickfuzz-0.1_p20160920-derive-2.6.patch [new file with mode: 0644]
app-forensics/quickfuzz/quickfuzz-0.1_p20160920.ebuild

diff --git a/app-forensics/quickfuzz/files/quickfuzz-0.1_p20160920-derive-2.6.patch b/app-forensics/quickfuzz/files/quickfuzz-0.1_p20160920-derive-2.6.patch
new file mode 100644 (file)
index 0000000..6e0f256
--- /dev/null
@@ -0,0 +1,21 @@
+diff --git a/src/DeriveShow.hs b/src/DeriveShow.hs
+index c11dd03..40cc205 100644
+--- a/src/DeriveShow.hs
++++ b/src/DeriveShow.hs
+@@ -1,5 +1,5 @@
+ {-# LANGUAGE TemplateHaskell #-}
++{-# LANGUAGE StandaloneDeriving #-}
+ module DeriveShow where
+-import           Data.Derive.Show
+ import           Data.DeriveTH
+@@ -12,3 +12,2 @@ isArbInsName = isinsName ''Show
+ devShow :: Name -> Q [Dec]
+-devShow = megaderive (derive makeShow) isArbInsName
+-
++devShow = megaderive (\n -> [d| deriving instance Show $(return (ConT n)) |]) isArbInsName
+--- a/QuickFuzz.cabal
++++ b/QuickFuzz.cabal
+@@ -75,0 +75,1 @@ executable QuickFuzz
++  default-extensions:  StandaloneDeriving
index a7532da69adc5340ae20880596ee6aa0a1d324ec..b16b564b392bf4ac519cf1300a5236214cfe0d79 100644 (file)
@@ -98,6 +98,7 @@ DEPEND="${RDEPEND}
 PATCHES=(
        "${FILESDIR}"/${P}-ghc-8.0.2_rc1.patch
        "${FILESDIR}"/${P}-directory-1.3.patch
+       "${FILESDIR}"/${P}-derive-2.6.patch
 )
 
 # $1 - target tarball name (not including extension)