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

EAPI=8

# ebuild generated by hackport 0.8.2.0

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

DESCRIPTION="A newtype-friendly variant of unboxed vectors"
HOMEPAGE="https://github.com/minoki/unboxing-vector#readme"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE="+mono-traversable"

RDEPEND="dev-haskell/primitive:=[profile?]
	dev-haskell/vector:=[profile?]
	>=dev-lang/ghc-8.8.1:=
	mono-traversable? ( dev-haskell/mono-traversable:=[profile?] )
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.0.0.0
	test? ( dev-haskell/hunit
		dev-haskell/should-not-typecheck )
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag mono-traversable mono-traversable)
}