# 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
#hackport: flags: -buildexamples

CABAL_HACKAGE_REVISION=3

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

DESCRIPTION="An experimental alternative hierarchy of numeric type classes"
HOMEPAGE="https://www.haskell.org/haskellwiki/Numeric_Prelude"

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

RDEPEND=">=dev-haskell/non-negative-0.0.5:=[profile?] <dev-haskell/non-negative-0.2:=[profile?]
	>=dev-haskell/parsec-1:=[profile?] <dev-haskell/parsec-4:=[profile?]
	>=dev-haskell/quickcheck-2.10:=[profile?] <dev-haskell/quickcheck-3:=[profile?]
	>=dev-haskell/random-1.0:=[profile?] <dev-haskell/random-1.4:=[profile?]
	>=dev-haskell/semigroups-0.1:=[profile?] <dev-haskell/semigroups-1.0:=[profile?]
	>=dev-haskell/storable-record-0.0.1:=[profile?] <dev-haskell/storable-record-0.1:=[profile?]
	>=dev-haskell/utility-ht-0.0.13:=[profile?] <dev-haskell/utility-ht-0.1:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( >=dev-haskell/doctest-exitcode-stdio-0.0 <dev-haskell/doctest-exitcode-stdio-0.1
		>=dev-haskell/doctest-lib-0.1 <dev-haskell/doctest-lib-0.1.2 )
"

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