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

EAPI=8

# ebuild generated by hackport 0.8.4.0.9999
#hackport: flags: +template-haskell

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

DESCRIPTION="Making de Bruijn Succ Less"
HOMEPAGE="https://github.com/ekmett/bound/"

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

RDEPEND=">=dev-haskell/bifunctors-5:=[profile?] <dev-haskell/bifunctors-6:=[profile?]
	>=dev-haskell/bytes-0.15.2:=[profile?] <dev-haskell/bytes-1:=[profile?]
	>=dev-haskell/cereal-0.4.1:=[profile?] <dev-haskell/cereal-0.6:=[profile?]
	>=dev-haskell/comonad-5:=[profile?] <dev-haskell/comonad-6:=[profile?]
	>=dev-haskell/hashable-1.2.5.0:=[profile?] <dev-haskell/hashable-1.5:=[profile?]
	>=dev-haskell/mmorph-1.0:=[profile?] <dev-haskell/mmorph-1.3:=[profile?]
	>=dev-haskell/profunctors-3.3:=[profile?] <dev-haskell/profunctors-6:=[profile?]
	>=dev-haskell/th-abstraction-0.4:=[profile?] <dev-haskell/th-abstraction-0.7:=[profile?]
	>=dev-haskell/transformers-compat-0.5:=[profile?] <dev-haskell/transformers-compat-1:=[profile?]
	>=dev-lang/ghc-8.8.1:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.0.0.0
	test? ( >=dev-haskell/deriving-compat-0.3.4 <dev-haskell/deriving-compat-0.7
		>=dev-haskell/vector-0.12
		dev-haskell/void )
"

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