# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

# ebuild generated by hackport 0.3.2.9999

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

DESCRIPTION="Automatic Differentiation"
HOMEPAGE="http://github.com/ekmett/ad"
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"

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

RDEPEND=">=dev-haskell/comonad-3:=[profile?]
		=dev-haskell/data-reify-0.6*:=[profile?]
		=dev-haskell/erf-2.0*:=[profile?]
		>=dev-haskell/free-3:=[profile?]
		>=dev-haskell/mtl-2:=[profile?]
		>=dev-haskell/reflection-1.1.6:=[profile?]
		>=dev-haskell/tagged-0.4.2.1:=[profile?]
		>=dev-lang/ghc-7.0.1:="
DEPEND="${RDEPEND}
		test? ( >=dev-haskell/doctest-0.9.0.1
			<=dev-haskell/doctest-0.10
		)
		>=dev-haskell/cabal-1.8"

src_configure() {
	haskell-cabal_src_configure \
		--flag=-lib-werror
}