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

EAPI=8

# ebuild generated by hackport 0.6.2

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

DESCRIPTION="Tools for writing better type errors"
HOMEPAGE="https://github.com/isovector/type-errors#readme"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"

#Ambiguous module ‘Data.Kind’: base-4.12.0.0 kinds-0.0.1.5
#Ambiguous module ‘Language.Haskell.TH’: ghc-lib-parser-8.8.1 template-haskell-2.14.0.0
RESTRICT=test

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

RDEPEND=">=dev-haskell/first-class-families-0.5.0.0:=[profile?]
	dev-haskell/syb:=[profile?]
	dev-haskell/th-abstraction:=[profile?]
	>=dev-lang/ghc-7.8.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-1.18.1.3
	test? ( >=dev-haskell/doctest-0.16.0.1 )
"

src_prepare() {
	default

	cabal_chdeps \
		'doctest >=0.16.0.1 && <0.17' 'doctest >=0.16.0.1'
}