# 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_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal

DESCRIPTION="A simply typed lambda calculus interpreter, written with GADTs"
HOMEPAGE="https://github.com/goldfirere/glambda"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
SRC_URI+="
	https://github.com/goldfirere/glambda/pull/11.patch
		-> ${P}-pretty-printer.patch"

PATCHES=(
	"${FILESDIR}"/${P}-mtl.patch
	"${FILESDIR}"/${P}-hlint.patch
	"${DISTDIR}"/${P}-pretty-printer.patch
	)

RDEPEND=">=dev-haskell/haskeline-0.7.1.1:=[profile?]
	>=dev-haskell/parsec-3.1:=[profile?]
	>=dev-haskell/prettyprinter-1.7.0:=[profile?]
	>=dev-haskell/prettyprinter-ansi-terminal-1.1.0:=[profile?]
	>=dev-haskell/text-2.1.1:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( >=dev-haskell/ansi-wl-pprint-0.6.7.1
		>=dev-haskell/tasty-0.8.1
		>=dev-haskell/tasty-hunit-0.9 )
"