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

EAPI=8

# ebuild generated by hackport 0.9.0.0.9999

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

DESCRIPTION="An easy to use, performant extensible effects library"
HOMEPAGE="https://hackage.haskell.org/package/effectful"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="benchmark-foreign-libraries"

RDEPEND=">=dev-haskell/async-2.2.2:=[profile?]
	>=dev-haskell/effectful-core-2.5.1.0:=[profile?] <dev-haskell/effectful-core-2.5.2.0:=[profile?]
	>=dev-haskell/strict-mutable-base-1.1.0.0:=[profile?]
	>=dev-haskell/unliftio-0.2.20:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( dev-haskell/lifted-base
		dev-haskell/primitive
		dev-haskell/safe-exceptions
		dev-haskell/tasty
		dev-haskell/tasty-hunit )
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag benchmark-foreign-libraries benchmark-foreign-libraries)
}