# 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="Fast concurrent queues with a Chan-like API, and more"
HOMEPAGE="https://hackage.haskell.org/package/unagi-chan"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="compare-benchmarks"

RESTRICT="test" # Error: "This test is taking too long..."

RDEPEND="
	>=dev-haskell/atomic-primops-0.8:=[profile?]
	>=dev-haskell/primitive-0.5.3:=[profile?]
	>=dev-lang/ghc-8.4.3:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-2.2.0.1
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag compare-benchmarks compare-benchmarks)
}