[DHG_packages] 01/01: csv-conduit: patch for GHC 8 generics

Clint Adams clint at moszumanska.debian.org
Sat Oct 22 23:02:02 UTC 2016


This is an automated email from the git hooks/post-receive script.

clint pushed a commit to branch experimental
in repository DHG_packages.

commit 9e4aa184c73d7e9edc3be63aea2b19b0ee15d89e
Author: Clint Adams <clint at debian.org>
Date:   Sat Oct 22 18:59:51 2016 -0400

    csv-conduit: patch for GHC 8 generics
---
 p/haskell-csv-conduit/debian/changelog               |  6 ++++++
 .../debian/patches/datakinds-and-meta-kind           | 20 ++++++++++++++++++++
 p/haskell-csv-conduit/debian/patches/series          |  1 +
 3 files changed, 27 insertions(+)

diff --git a/p/haskell-csv-conduit/debian/changelog b/p/haskell-csv-conduit/debian/changelog
index 653d9cf..a608a13 100644
--- a/p/haskell-csv-conduit/debian/changelog
+++ b/p/haskell-csv-conduit/debian/changelog
@@ -1,3 +1,9 @@
+haskell-csv-conduit (0.6.6-7) experimental; urgency=medium
+
+  * Patch for GHC 8 generics.
+
+ -- Clint Adams <clint at debian.org>  Sat, 22 Oct 2016 18:59:16 -0400
+
 haskell-csv-conduit (0.6.6-6) experimental; urgency=medium
 
   [ Dmitry Bogatov ]
diff --git a/p/haskell-csv-conduit/debian/patches/datakinds-and-meta-kind b/p/haskell-csv-conduit/debian/patches/datakinds-and-meta-kind
new file mode 100644
index 0000000..1daa199
--- /dev/null
+++ b/p/haskell-csv-conduit/debian/patches/datakinds-and-meta-kind
@@ -0,0 +1,20 @@
+--- a/src/Data/CSV/Conduit/Conversion.hs
++++ b/src/Data/CSV/Conduit/Conversion.hs
+@@ -2,7 +2,7 @@
+              Rank2Types #-}
+ #ifdef GENERICS
+ {-# LANGUAGE DefaultSignatures, TypeOperators, KindSignatures, FlexibleContexts,
+-             MultiParamTypeClasses, UndecidableInstances, ScopedTypeVariables #-}
++             MultiParamTypeClasses, UndecidableInstances, ScopedTypeVariables, DataKinds #-}
+ #endif
+ 
+ -----------------------------------------------------------------------------
+@@ -856,7 +856,7 @@
+ instance FromField a => GFromRecordProd (K1 i a) Record where
+     gparseRecordProd n = (n + 1, \v -> K1 <$> parseField (V.unsafeIndex v n))
+ 
+-data Proxy s (f :: * -> *) a = Proxy
++data Proxy (s :: Meta) (f :: * -> *) a = Proxy
+ 
+ instance (FromField a, Selector s) => GFromRecordProd (M1 S s (K1 i a)) NamedRecord where
+     gparseRecordProd n = (n + 1, \v -> (M1 . K1) <$> v .: name)
diff --git a/p/haskell-csv-conduit/debian/patches/series b/p/haskell-csv-conduit/debian/patches/series
index e329b59..4f75934 100644
--- a/p/haskell-csv-conduit/debian/patches/series
+++ b/p/haskell-csv-conduit/debian/patches/series
@@ -1 +1,2 @@
 newer-ghc-prim
+datakinds-and-meta-kind

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/DHG_packages.git



More information about the Pkg-haskell-commits mailing list