# 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_HACKAGE_REVISION=5

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

DESCRIPTION="Hedgehog will eat your typeclass bugs"
HOMEPAGE="https://github.com/hedgehogqa/haskell-hedgehog-classes"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="+aeson +comonad +primitive +semirings +vector"

RDEPEND=">=dev-haskell/hedgehog-1:=[profile?] <dev-haskell/hedgehog-1.6:=[profile?]
	>=dev-haskell/pretty-show-1.9:=[profile?] <dev-haskell/pretty-show-1.11:=[profile?]
	>=dev-haskell/silently-1.2:=[profile?] <dev-haskell/silently-1.3:=[profile?]
	>=dev-haskell/wl-pprint-annotated-0.0:=[profile?] <dev-haskell/wl-pprint-annotated-0.2:=[profile?]
	>=dev-lang/ghc-9.0.2:=
	aeson? ( >=dev-haskell/aeson-0.9:=[profile?] <dev-haskell/aeson-2.3:=[profile?] )
	comonad? ( >=dev-haskell/comonad-5.0:=[profile?] <dev-haskell/comonad-5.1:=[profile?] )
	primitive? ( >=dev-haskell/primitive-0.6.4:=[profile?] <dev-haskell/primitive-0.10:=[profile?] )
	semirings? ( >=dev-haskell/semirings-0.2:=[profile?] <dev-haskell/semirings-0.8:=[profile?] )
	vector? ( >=dev-haskell/vector-0.12:=[profile?] <dev-haskell/vector-0.14:=[profile?] )
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	aeson? ( test? ( !comonad? ( dev-haskell/comonad ) ) )
	!aeson? ( comonad? ( test? ( dev-haskell/aeson ) )
			!comonad? ( test? ( dev-haskell/aeson
					dev-haskell/comonad ) ) )
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag aeson aeson) \
		$(cabal_flag comonad comonad) \
		$(cabal_flag primitive primitive) \
		$(cabal_flag semirings semirings) \
		$(cabal_flag vector vector)
}