# 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=1

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

DESCRIPTION="24-bit word and int types for GHC"
HOMEPAGE="https://github.com/winterland1989/word24"

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

PATCHES=(
	"${FILESDIR}"/${P}-fix-countTrailingZeros.patch
	"${FILESDIR}"/${P}-Support-GHC-9.2.patch
	"${FILESDIR}"/${P}-Fixing-a-small-ommission-in-test-suite.patch
	)

RDEPEND=">=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	>=dev-haskell/word-compat-0 <dev-haskell/word-compat-0.1
	test? ( >=dev-haskell/quickcheck-2 <dev-haskell/quickcheck-3
		>=dev-haskell/test-framework-0.2 <dev-haskell/test-framework-0.9
		>=dev-haskell/test-framework-quickcheck2-0.2 <dev-haskell/test-framework-quickcheck2-0.7 )
"