# 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: -lib-werror

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

DESCRIPTION="Cron datatypes and Attoparsec parser"
HOMEPAGE="https://github.com/michaelxavier/cron"

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

RDEPEND=">=dev-haskell/attoparsec-0.10:=[profile?]
	dev-haskell/data-default:=[profile?]
	>=dev-haskell/mtl-compat-0.2.1:=[profile?]
	>=dev-haskell/old-locale-1.0:=[profile?]
	dev-haskell/semigroups:=[profile?]
	>=dev-haskell/text-0.11:=[profile?] <dev-haskell/text-3:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( dev-haskell/hedgehog
		dev-haskell/tasty
		dev-haskell/tasty-hedgehog
		dev-haskell/tasty-hunit
		dev-haskell/transformers-compat )
"

src_configure() {
	haskell-cabal_src_configure \
		--flag=-lib-werror
}