# 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="Classes and data structures for working with data-kind indexed types"
HOMEPAGE="https://github.com/GaloisInc/parameterized-utils"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="+unsafe-operations"

RDEPEND=">=dev-haskell/base-orphans-0.8.2:=[profile?] <dev-haskell/base-orphans-0.10:=[profile?]
	>=dev-haskell/constraints-0.10:=[profile?] <dev-haskell/constraints-0.15:=[profile?]
	>=dev-haskell/hashable-1.2:=[profile?] <dev-haskell/hashable-1.6:=[profile?]
	>=dev-haskell/hashtables-1.2:=[profile?] <dev-haskell/hashtables-1.5:=[profile?]
	dev-haskell/indexed-traversable:=[profile?]
	>=dev-haskell/lens-4.16:=[profile?] <dev-haskell/lens-5.4:=[profile?]
	>=dev-haskell/profunctors-5.6:=[profile?] <dev-haskell/profunctors-5.7:=[profile?]
	dev-haskell/text:=[profile?]
	>=dev-haskell/th-abstraction-0.4.2:=[profile?] <dev-haskell/th-abstraction-0.8:=[profile?]
	>=dev-haskell/vector-0.12:=[profile?] <dev-haskell/vector-0.14:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( dev-haskell/hedgehog
		dev-haskell/hedgehog-classes
		>=dev-haskell/tasty-1.2 <dev-haskell/tasty-1.6
		>=dev-haskell/tasty-ant-xml-1.1 <dev-haskell/tasty-ant-xml-1.2
		>=dev-haskell/tasty-hedgehog-1.2
		>=dev-haskell/tasty-hunit-0.9 <dev-haskell/tasty-hunit-0.11 )
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag unsafe-operations unsafe-operations)
}