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

# ebuild generated by hackport 0.2.17.9999

EAPI=8

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

DESCRIPTION="Jailed IO monad"
HOMEPAGE="https://hackage.haskell.org/package/jail"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

RDEPEND="dev-haskell/mtl:=[profile?]
	>=dev-haskell/transformers-0.1:=[profile?]
	>=dev-lang/ghc-6.10.1:="
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-1.6"

PATCHES=("${FILESDIR}"/${P}-tf-0.3.patch)

src_prepare() {
	default

	cabal_chdeps \
		'directory >=1.0 && < 1.3' 'directory >=1.0' \
		'containers >= 0.2 && < 0.6' 'containers >= 0.2'
}