--- /dev/null
+# 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 )
+"
--- /dev/null
+<?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
+ @<http://hackage.haskell.org/package/generic-deriving generic-deriving>@
+ 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
+ @<http://hackage.haskell.org/package/th-lift th-lift>@
+ to derive @Lift@ using Template Haskell.
+ </longdescription>
+</pkgmetadata>