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

EAPI=8

# ebuild generated by hackport 0.7.2.1.9999
#hackport: flags: -dev

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

DESCRIPTION="Client library for the Redis datastore: supports full command set, pipelining"
HOMEPAGE="https://github.com/informatikr/hedis"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"

RDEPEND=">=dev-haskell/async-2.1:=[profile?]
	>=dev-haskell/bytestring-lexing-0.5:=[profile?]
	dev-haskell/errors:=[profile?]
	dev-haskell/http:=[profile?]
	>=dev-haskell/network-2:=[profile?] <dev-haskell/network-3.2:=[profile?]
	dev-haskell/network-uri:=[profile?]
	>=dev-haskell/resource-pool-0.2:=[profile?]
	>=dev-haskell/scanner-0.2:=[profile?]
	dev-haskell/stm:=[profile?]
	>=dev-haskell/tls-1.3:=[profile?]
	dev-haskell/unliftio-core:=[profile?]
	dev-haskell/unordered-containers:=[profile?]
	>=dev-haskell/vector-0.9:=[profile?]
	>=dev-lang/ghc-8.10.1:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.2.0.0
	test? ( dev-haskell/doctest
		dev-haskell/hunit
		dev-haskell/test-framework
		dev-haskell/test-framework-hunit )
"

src_configure() {
	haskell-cabal_src_configure \
		--flag=-dev
}