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

EAPI=8

# ebuild generated by hackport 0.7.3.0

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

DESCRIPTION="Safe, performant, user-friendly and lightweight Haskell Standard Library"
HOMEPAGE="https://github.com/kowainik/relude"

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

PATCHES=(
	"${FILESDIR}/${PN}-1.0.0.1-disable-doctest.patch"
)

CABAL_CHDEPS=(
	'hedgehog >= 1.0 && < 1.2' 'hedgehog >= 1.0'
)

RDEPEND="
	>=dev-haskell/hashable-1.2:=[profile?] <dev-haskell/hashable-1.5:=[profile?]
	>=dev-haskell/stm-2.4:=[profile?] <dev-haskell/stm-2.6:=[profile?]
	>=dev-haskell/unordered-containers-0.2.7:=[profile?] <dev-haskell/unordered-containers-0.3:=[profile?]
	>=dev-lang/ghc-8.4.3:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.0
	test? (
		dev-haskell/glob
		>=dev-haskell/hedgehog-1.0
	)
"