# 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_FEATURES="lib profile haddock hoogle hscolour"
inherit haskell-cabal

DESCRIPTION="Indexed functors, monads and comonads that require extensions to Haskell98"
HOMEPAGE="https://github.com/reinerp/indexed-extras"

GIT_REPO="https://github.com/reinerp/indexed-extras"
GIT_COMMIT="3da044a29d43f1959a57b77ec6cb18ec1bc6a4e5" # 2024-05-18
GIT_P="${PN}-${GIT_COMMIT}"

SRC_URI="
	${GIT_REPO}/archive/${GIT_COMMIT}.tar.gz -> ${GIT_P}.tar.gz
"

S="${WORKDIR}/${GIT_P}"
CABAL_FILE="${S}/${PN}.cabal"

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

RDEPEND="<dev-haskell/bifunctors-5.7:=[profile?]
	<dev-haskell/indexed-0.2:=[profile?]
	<dev-haskell/pointed-5.1:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0"