# 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
#hackport: flags: -dev

CABAL_HACKAGE_REVISION=1

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"

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.3:=[profile?]
	dev-haskell/network-uri:=[profile?]
	>=dev-haskell/resource-pool-0.2:=[profile?]
	>=dev-haskell/scanner-0.2:=[profile?]
	dev-haskell/text:=[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-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.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
}