--- /dev/null
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.7.9999
+
+CABAL_FEATURES="lib profile" # ghc-8 already provides module; haddock hoogle hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="Forward-compatible MonadFail class"
+HOMEPAGE="https://prime.haskell.org/wiki/Libraries/Proposals/MonadFail"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.10
+"
--- /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>
+ This package contains the "Control.Monad.Fail" module providing the
+ <https://prime.haskell.org/wiki/Libraries/Proposals/MonadFail MonadFail>
+ class that became available in
+ <https://hackage.haskell.org/package/base-4.9.0.0 base-4.9.0.0>
+ for older @base@ package versions.
+
+ This package turns into an empty package when used with GHC versions
+ which already provide the "Control.Monad.Fail" module to make way for
+ GHC's own "Control.Monad.Fail" module.
+ </longdescription>
+</pkgmetadata>