# Copyright 1999-2020 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"
inherit haskell-cabal

DESCRIPTION="Pointful refactoring tool"
HOMEPAGE="https://github.com/23Skidoo/pointful"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"

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

RDEPEND=">=dev-lang/ghc-7.8.2:=
	>=dev-haskell/haskell-src-exts-simple-1.18:=[profile?]
	>=dev-haskell/mtl-2:=[profile?]
	>=dev-haskell/syb-0.3:=[profile?]
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-2.0
"

PATCHES=(
	"${FILESDIR}"/${P}-ghc-9.8.patch
	)

CABAL_CHDEPS=(
		'haskell-src-exts-simple >= 1.18 && < 1.21' 'haskell-src-exts-simple >= 1.18'
		'base                    >= 4.7  && < 4.13 || ^>= 4.13' 'base                    >= 4.7'
		'mtl                     >= 2    && < 2.2  || ^>= 2.2' 'mtl >= 2'
		'transformers            >= 0.2  && < 0.5  || ^>= 0.5' 'transformers >= 0.2'
	)