# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

# ebuild generated by hackport 0.6.9999

CABAL_FEATURES="lib profile haddock hoogle hscolour"
inherit haskell-cabal

MY_PN="QuickCheck-safe"
MY_P="${MY_PN}-${PV}"

DESCRIPTION="Safe reimplementation of QuickCheck's core"
HOMEPAGE="https://hackage.haskell.org/package/QuickCheck-safe"
SRC_URI="https://hackage.haskell.org/package/${MY_P}/${MY_P}.tar.gz"

LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE=""

RDEPEND=">=dev-haskell/quickcheck-2.7.3:=[profile?]
	>=dev-lang/ghc-7.6.1:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-1.16.0
"

S="${WORKDIR}/${MY_P}"

src_prepare() {
	default

	cabal_chdeps 'QuickCheck >= 2.7.3 && < 2.14' 'QuickCheck >= 2.7.3'
}