# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

# ebuild generated by hackport 0.8.4.0.9999

CABAL_HACKAGE_REVISION=3

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

DESCRIPTION="Extend the import list of a Haskell source file"
HOMEPAGE="https://hackage.haskell.org/package/hsimport"

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

CABAL_CHDEPS=(
	'tasty >=0.9.0.1 && <1.3' 'tasty >=0.9.0.1'
	'attoparsec >=0.10.4.0 && <0.14' 'attoparsec >=0.10.4.0'
	'dyre ==0.8.*' 'dyre >=0.8'
)

RDEPEND="
	>=dev-haskell/attoparsec-0.10.4.0:=[profile?]
	>=dev-haskell/cmdargs-0.10.5:=[profile?] <dev-haskell/cmdargs-0.11:=[profile?]
	>=dev-haskell/dyre-0.8:=[profile?]
	>=dev-haskell/haskell-src-exts-1.18.0:=[profile?] <dev-haskell/haskell-src-exts-1.24:=[profile?]
	>=dev-haskell/ilist-0.1:=[profile?] <dev-haskell/ilist-0.5:=[profile?]
	>=dev-haskell/microlens-0.4:=[profile?] <dev-haskell/microlens-0.5:=[profile?]
	>=dev-haskell/split-0.2.2:=[profile?] <dev-haskell/split-0.3:=[profile?]
	>=dev-haskell/text-0.11.3.1:=[profile?] <dev-haskell/text-1.3:=[profile?]
	>=dev-lang/ghc-8.8.1:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.0.0.0
	test? (
		>=dev-haskell/tasty-0.9.0.1
		>=dev-haskell/tasty-golden-2.2.0.1 <dev-haskell/tasty-golden-2.4
		>=dev-haskell/utf8-string-1.0.1.1 <dev-haskell/utf8-string-1.1
	)
"