summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-haskell/deriving-compat/Manifest1
-rw-r--r--dev-haskell/deriving-compat/deriving-compat-0.3.5.ebuild31
-rw-r--r--dev-haskell/deriving-compat/metadata.xml51
3 files changed, 83 insertions, 0 deletions
diff --git a/dev-haskell/deriving-compat/Manifest b/dev-haskell/deriving-compat/Manifest
new file mode 100644
index 000000000000..8df4f6b3ce26
--- /dev/null
+++ b/dev-haskell/deriving-compat/Manifest
@@ -0,0 +1 @@
+DIST deriving-compat-0.3.5.tar.gz 60418 SHA256 0a165c8eeb78349ded41cf51750753cdd0e25c139171789f7a4b0c6be4ccd231 SHA512 73facb605f26edb05ce299cf40443a12d4508abc28a7a08bcb88e60edd12bd4c015023004abfc78794239f38e622e0b4309df63e40f8a5dd621fcd15cf1ede7a WHIRLPOOL b71d302563df5bbdc0da53f697547b5d26b6b4cffe5204c88f8eb53c0d7fcdfe9a81b67caa0dc4bd2c7a7560c54c6c7f1af00ec0c4ced69767c0a0d8625da06c
diff --git a/dev-haskell/deriving-compat/deriving-compat-0.3.5.ebuild b/dev-haskell/deriving-compat/deriving-compat-0.3.5.ebuild
new file mode 100644
index 000000000000..72ffe2a384be
--- /dev/null
+++ b/dev-haskell/deriving-compat/deriving-compat-0.3.5.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+# ebuild generated by hackport 0.5.1.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Backports of GHC deriving extensions"
+HOMEPAGE="https://github.com/haskell-compat/deriving-compat"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-haskell/transformers-compat-0.5:=[profile?]
+ >=dev-lang/ghc-7.8.2:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.18.1.3
+ test? ( >=dev-haskell/base-compat-0.8.1 <dev-haskell/base-compat-1
+ >=dev-haskell/base-orphans-0.5 <dev-haskell/base-orphans-1
+ >=dev-haskell/hspec-1.8
+ >=dev-haskell/quickcheck-2 <dev-haskell/quickcheck-3
+ >=dev-haskell/tagged-0.7 <dev-haskell/tagged-1 )
+"
diff --git a/dev-haskell/deriving-compat/metadata.xml b/dev-haskell/deriving-compat/metadata.xml
new file mode 100644
index 000000000000..e88c7885a7b6
--- /dev/null
+++ b/dev-haskell/deriving-compat/metadata.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+ <longdescription>
+ Provides Template Haskell functions that mimic deriving
+ extensions that were introduced or modified in recent versions
+ of GHC. Currently, the following extensions are covered:
+
+ * @DeriveFoldable@
+
+ * @DeriveFunctor@
+
+ * @DeriveTraversable@
+
+ The following changes have been backported:
+
+ * In GHC 8.0, @DeriveFoldable@ was changed to allow folding
+ over data types with existential constraints.
+
+ * In GHC 8.0, @DeriveFoldable@ and @DeriveTraversable@ were
+ changed so as not to generate superfluous @mempty@ or @pure@
+ expressions in generated code. As a result, this allows
+ deriving @Traversable@ instances for datatypes with unlifted
+ argument types.
+
+ * In GHC 8.0, deriving @Show@ was changed so that constructor fields
+ with unlifted types are no longer shown with parentheses, and
+ the output of showing an unlifted type is suffixed with the same
+ number of hash signs as the corresponding primitive literals.
+
+ * In GHC 8.2, deriving `Ord` was changed so that it generates concrete
+ @if@-expressions that are not subject to @RebindableSyntax@.
+
+ Note that some recent GHC extensions are not covered by this package:
+
+ * @DeriveGeneric@, which was introducted in GHC 7.2 for deriving
+ @Generic@ instances, and modified in GHC 7.6 to allow derivation
+ of @Generic1@ instances. Use @Generics.Deriving.TH@ from
+ @&lt;http://hackage.haskell.org/package/generic-deriving generic-deriving&gt;@
+ to derive @Generic(1)@ using Template Haskell.
+
+ * @DeriveLift@, which was introduced in GHC 8.0 for deriving
+ @Lift@ instances. Use @Language.Haskell.TH.Lift@ from
+ @&lt;http://hackage.haskell.org/package/th-lift th-lift&gt;@
+ to derive @Lift@ using Template Haskell.
+ </longdescription>
+</pkgmetadata>