# 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

CABAL_HACKAGE_REVISION=2

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

DESCRIPTION="First class accessor labels implemented as lenses"
HOMEPAGE="https://github.com/sebastiaanvisser/fclabels"

CABAL_CHDEPS=(
	'base             >= 4.5   && < 4.19' 'base >= 4.5'
	'template-haskell >= 2.2   && < 2.21' 'template-haskell >= 2.2'
	'transformers     >= 0.2   && < 0.7' 'transformers >= 0.2'
	'transformers < 0.6' 'transformers'
)

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

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

RDEPEND=">=dev-haskell/base-orphans-0.8.2:=[profile?] <dev-haskell/base-orphans-0.10:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( >=dev-haskell/hunit-1.2 <dev-haskell/hunit-1.7 )
"