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

EAPI=8

# ebuild generated by hackport 0.9.0.0.9999

CABAL_HACKAGE_REVISION=1

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

DESCRIPTION="Create strippable HKD via TH"
HOMEPAGE="https://github.com/fumieval/barbies-th"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
CABAL_CHDEPS=(
	'base >= 4.12 && <4.20' 'base >= 4.12'
	'template-haskell >= 2.14 && <2.22' 'template-haskell >= 2.14'
)

PATCHES=(
	"${FILESDIR}"/${P}-ghc-9.8.patch
)

RDEPEND=">=dev-haskell/barbies-2.0.1:=[profile?] <dev-haskell/barbies-2.1:=[profile?]
	>=dev-haskell/split-0.2:=[profile?] <dev-haskell/split-0.3:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
"