forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-forensics/quickfuzz: tweak for derive-2.6
Package-Manager: Portage-2.3.8, Repoman-2.3.3
- Loading branch information
Sergei Trofimovich
committed
Aug 20, 2017
1 parent
c544957
commit b02ce91
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
app-forensics/quickfuzz/files/quickfuzz-0.1_p20160920-derive-2.6.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters