From 3cf7c3ef441822c889356fd1812ebf2944a59851 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 25 Aug 2020 10:45:55 +0100 Subject: gentoo resync : 25.08.2020 --- dev-haskell/quickcheck-classes-base/Manifest | 3 ++ dev-haskell/quickcheck-classes-base/metadata.xml | 33 ++++++++++++++++++ .../quickcheck-classes-base-0.6.0.0.ebuild | 39 ++++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 dev-haskell/quickcheck-classes-base/Manifest create mode 100644 dev-haskell/quickcheck-classes-base/metadata.xml create mode 100644 dev-haskell/quickcheck-classes-base/quickcheck-classes-base-0.6.0.0.ebuild (limited to 'dev-haskell/quickcheck-classes-base') diff --git a/dev-haskell/quickcheck-classes-base/Manifest b/dev-haskell/quickcheck-classes-base/Manifest new file mode 100644 index 000000000000..6664c2ecf0b6 --- /dev/null +++ b/dev-haskell/quickcheck-classes-base/Manifest @@ -0,0 +1,3 @@ +DIST quickcheck-classes-base-0.6.0.0.tar.gz 25760 BLAKE2B d09794c63da8311836e6422006d262fca21f7d71b473b69f57bd49b3ed2e39f29fcfd18b73fd311db4f6b1cca390cc579f2438481dbd680841c835d7d0d9f557 SHA512 3d0a7c68ab1cdaddbd272df633e0704f5ee3997b3a86fe79cb960f7c84f8546f3360b9d52ada45b9db6344135f0aab1093d5304935ae19f43d235790fba83216 +EBUILD quickcheck-classes-base-0.6.0.0.ebuild 1143 BLAKE2B 9f80f952b5ebe7f421bea47b9fd028ceb8f21aacf6a73dac28e5d7a321b43eef02df93ee78ba347a1e588ae56b5b8562b58b6c84fd1734e62143ea6940874993 SHA512 55d5b608286319e3bedeb2f0601556045420b05520062ecc5ef9e1b41f68b05a05ccdbcd204f38c73079da86ce494c60c8977cd9212cc92b667e7dc2f3327c91 +MISC metadata.xml 1592 BLAKE2B 7020e82f10049c969769746ae0650957824e80aa448ee2a360055d88006e5423cf888f4467fe364c58df852c6611126a60fc91c55f621c02e4787f6f236aa28d SHA512 a9583e85d9b560b12cf7493e64010527bac6cfc2e9e259624919f77459fabd36bf75ec8ef53085812f99623c67da03ffa16b6e85d2d1da4823c898c8cb56a7d3 diff --git a/dev-haskell/quickcheck-classes-base/metadata.xml b/dev-haskell/quickcheck-classes-base/metadata.xml new file mode 100644 index 000000000000..6b8592b1a5b8 --- /dev/null +++ b/dev-haskell/quickcheck-classes-base/metadata.xml @@ -0,0 +1,33 @@ + + + + + haskell@gentoo.org + Gentoo Haskell + + + Include infrastructure for testing class laws of unary type constructors. + Include infrastructure for testing class laws of binary type constructors. +Disabling `unary-laws` while keeping `binary-laws` enabled is an unsupported +configuration. + + + This libary is a minimal variant of `quickcheck-classes` that + only provides laws for typeclasses from `base`. The main purpose + of splitting this out is so that `primitive` can depend on + `quickcheck-classes-base` in its test suite, avoiding the circular + dependency that arises if `quickcheck-classes` is used instead. + + This library provides QuickCheck properties to ensure + that typeclass instances adhere to the set of laws that + they are supposed to. There are other libraries that do + similar things, such as `genvalidity-hspec` and `checkers`. + This library differs from other solutions by not introducing + any new typeclasses that the user needs to learn. + + /Note:/ on GHC < 8.5, this library uses the higher-kinded typeclasses + ('Data.Functor.Classes.Show1', 'Data.Functor.Classes.Eq1', 'Data.Functor.Classes.Ord1', etc.), + but on GHC >= 8.5, it uses `-XQuantifiedConstraints` to express these + constraints more cleanly. + + diff --git a/dev-haskell/quickcheck-classes-base/quickcheck-classes-base-0.6.0.0.ebuild b/dev-haskell/quickcheck-classes-base/quickcheck-classes-base-0.6.0.0.ebuild new file mode 100644 index 000000000000..8b0c61a1e9d7 --- /dev/null +++ b/dev-haskell/quickcheck-classes-base/quickcheck-classes-base-0.6.0.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# ebuild generated by hackport 0.6.2 + +CABAL_FEATURES="lib profile haddock hoogle hscolour" +inherit haskell-cabal + +DESCRIPTION="QuickCheck common typeclasses from 'base'" +HOMEPAGE="https://github.com/andrewthad/quickcheck-classes#readme" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="+binary-laws +unary-laws" + +RDEPEND=">=dev-haskell/base-orphans-0.1:=[profile?] + dev-haskell/bifunctors:=[profile?] + dev-haskell/contravariant:=[profile?] + dev-haskell/fail:=[profile?] + >=dev-haskell/semigroups-0.17:=[profile?] + dev-haskell/tagged:=[profile?] + >=dev-lang/ghc-8.0.1:= + binary-laws? ( >=dev-haskell/quickcheck-2.10.0:2=[profile?] ) + unary-laws? ( >=dev-haskell/quickcheck-2.10.0:2=[profile?] ) + !unary-laws? ( !binary-laws? ( >=dev-haskell/quickcheck-2.7:2=[profile?] ) ) +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.24.0.0 +" + +src_configure() { + haskell-cabal_src_configure \ + $(cabal_flag binary-laws binary-laws) \ + $(cabal_flag unary-laws unary-laws) +} -- cgit v1.2.3