# 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="Cross platform library for file change notification"
HOMEPAGE="https://github.com/haskell-fswatch/hfsnotify"

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

# https://github.com/haskell-fswatch/hfsnotify/issues/116
# fixed in upcoming release
PATCHES=("${FILESDIR}"/${P}-Text.patch)

CABAL_CHDEPS=('text >=0.11.0 && <2.1.2' 'text >=0.11.0')

RDEPEND=">=dev-haskell/async-2.0.0.0:=[profile?]
	>=dev-haskell/hinotify-0.3.7:=[profile?]
	>=dev-haskell/monad-control-1.0.0.0:=[profile?]
	>=dev-haskell/safe-exceptions-0.1.0.0:=[profile?]
	>=dev-haskell/text-0.11.0:=[profile?]
	>=dev-haskell/unix-compat-0.2:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( dev-haskell/random
		dev-haskell/retry
		dev-haskell/sandwich
		dev-haskell/temporary
		>=dev-haskell/unliftio-0.2.20 )
"