Commit a06d4ecb authored by James T. Lee's avatar James T. Lee
Browse files

haskell: Remove GHC 9.0.1 and friends

Running this with LLVM 10 and 11 did not solve the instability under
qemu-user.  No need to maintain all this complication.
parent c7037014
Pipeline #568 passed with stage
in 2 minutes and 57 seconds
DIST alex-3.2.6.tar.gz 108832 BLAKE2B 20174955ab21353c2b1efeae9a038846f6d9f522c299fb319f60d2a1e7eb759ffce8327e0baa3358e5d1f1cc889a4cd073e6b89f3b7cd44297245d53cc3f4f07 SHA512 05b6e55e9a1c348aea599d1130780a3d2a0a7c5f1db00b2c98bd34737cac9d48842fb1b1f98947a99d99013f94e39a6ffee1af8546f02fb2d32fcf362ff0f83c
EBUILD alex-3.2.6.ebuild 1447 BLAKE2B b5abbbae8f3d437a02c32b9d862d7869fb2dcb55c2d8a918cf4a97ccadcdb013c90f850512fbfcbd1e63b2fd6be3f8ab6ccc6f7087c2915368bb96364432b329 SHA512 4ad0e5d1429d8d87b20d9a2abbeee99568d0dc0e140394702f241ddc9cdf5f11be50d7d9788f756e7da335a3984d7a2417a3491d8de55ce3fb70d9f2819bd155
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# ebuild generated by hackport 0.6.4.9999
#hackport: flags: +small_base
CABAL_FEATURES="test-suite"
inherit autotools haskell-cabal
DESCRIPTION="Alex is a tool for generating lexical analysers in Haskell"
HOMEPAGE="https://www.haskell.org/alex/"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND=">=dev-lang/ghc-7.4.1:="
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.8
doc? ( ~app-text/docbook-xml-dtd-4.2
app-text/docbook-xsl-stylesheets
>=dev-libs/libxslt-1.1.2 )
"
src_prepare() {
default
if use doc; then
cd "${S}/doc/"
eautoreconf
fi
}
src_configure() {
# make sure we don't accidentally use those
# installed in system
haskell-cabal_src_configure \
--with-alex=false \
--with-happy=false \
--flag=small_base
if use doc; then
cd "${S}/doc/"
econf
fi
}
src_compile() {
haskell-cabal_src_compile
if use doc; then
emake -C "${S}/doc/" -j1
fi
}
src_test() {
# 1. workaround Setup.hs deadlock: https://github.com/haskell/cabal/issues/2398
# 2. use freshly built ALEX= binary and datadir path
alex_datadir="${S}"/data \
emake -k -C tests all ALEX="${S}"/dist/build/alex/alex
}
src_install() {
haskell-cabal_src_install
if use doc; then
doman "${S}/doc/alex.1"
docinto html
dodoc -r "${S}/doc/alex/"
fi
}
DIST assoc-1.0.2.tar.gz 3047 BLAKE2B 07f409ce555ac5f041d83db94829638e00ec50175499d42263f19570bc9f58788522ba4edc058450e90912b75aa21f7bfbdcd054cd5025a4aa0cb88b74020c9d SHA512 20fd0056dcc2dff9504e090be5c2ef27692a795133620e60b9382cfdfbaf26d1019617acf48f0f762e22d699068bc4dbd35a714177ce3a36761c0065708b9168
EBUILD assoc-1.0.2.ebuild 815 BLAKE2B c1a286599c64426bbd73085c4acda45832b4b3baf9484501898fcdae5107e85d6272e40660df549bd7ca138bf8de79ddf1b57ac224bfe65822768d203a059df6 SHA512 7c5af13bd3681da5a502f8b91ef87c8fd2d01a3ed07fb278db3aa5056fd03a821ef2a3b6dfa1529d2d01d747f580695c362a264d5acd2a5c518bc45e9523ea5e
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# ebuild generated by hackport 0.6.6.9999
CABAL_FEATURES="lib profile haddock hoogle hscolour"
inherit haskell-cabal
DESCRIPTION="swap and assoc: Symmetric and Semigroupy Bifunctors"
HOMEPAGE="https://hackage.haskell.org/package/assoc"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=dev-haskell/bifunctors-5.5.5:=[profile?] <dev-haskell/bifunctors-5.6:=[profile?]
>=dev-haskell/tagged-0.8.6:=[profile?] <dev-haskell/tagged-0.9:=[profile?]
>=dev-lang/ghc-7.4.1:=
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.12
"
src_prepare() {
default
cabal_chdeps \
'base >=4.3 && <4.15' 'base >=4.3'
}
AUX basement-0.0.11-ghc-9-compatibility.patch 2130 BLAKE2B c03042d413b3424e494232793b5c97a569af7cf541ac74d401e5b2504f4765aeb2f277dbfad54341f115c62bc808a378cb3568b00f916000a3ecf9e446748fdf SHA512 f9fdeda330f1cfda3cb0b8285a42ce223079bf65875cb3d57d784e01cf5013647fc09772e7219a546635f6c3d6972600d449f93f0768a5a6e27a078191ccebd1
DIST basement-0.0.11.tar.gz 134032 BLAKE2B 52d9d674841d048b53011589c7a87c7cd7e45655db3c7bc2c99574b8a49bace33f20abf7d4614cf3106e2b87cb67340e5d2f76416889038c2e081c1f62f46bdb SHA512 2396e692fcaa080418eb90c38148dbb2465490ffaa5e35d141573d32729794dffb444bdddd55082878520a22629cfead5fdc1ac98f1d369600cc3165b64730d5
EBUILD basement-0.0.11.ebuild 643 BLAKE2B e0550deb8b18c1f0507e053fdcf750d15ce49aa4cfe11e2c1c81ee71b5d0397d1872b5b75e34c72c95707e8a820075adf7546c931d6c969450f8ed3e7c910a75 SHA512 687370f138050d0abe94181d5dac461ef9c02f214ce1310509cf714d47deed72177312cb9dd51e4b7ed707f67fc0658b21af34f2e6bfd78599b01951edaeda1e
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# ebuild generated by hackport 0.6.1.9999
CABAL_FEATURES="lib profile haddock hoogle hscolour"
inherit haskell-cabal
DESCRIPTION="Foundation scrap box of array & string"
HOMEPAGE="https://github.com/haskell-foundation/foundation#readme"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=dev-lang/ghc-8.0.1:=
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.24.0.0
"
src_prepare() {
default
eapply "${FILESDIR}/${P}-ghc-9-compatibility.patch"
}
diff -u -r basement-0.0.11.orig/Basement/Block/Base.hs basement-0.0.11/Basement/Block/Base.hs
--- basement-0.0.11.orig/Basement/Block/Base.hs 2021-02-21 15:21:24.831530586 -0500
+++ basement-0.0.11/Basement/Block/Base.hs 2021-02-21 15:22:24.943126168 -0500
@@ -36,7 +36,8 @@
, unsafeRecast
) where
-import GHC.Prim
+import GHC.Exts (unsafeCoerce#)
+import GHC.Prim hiding (unsafeCoerce#)
import GHC.Types
import GHC.ST
import GHC.IO
diff -u -r basement-0.0.11.orig/Basement/BoxedArray.hs basement-0.0.11/Basement/BoxedArray.hs
--- basement-0.0.11.orig/Basement/BoxedArray.hs 2021-02-21 15:21:24.833530572 -0500
+++ basement-0.0.11/Basement/BoxedArray.hs 2021-02-21 15:22:24.943126168 -0500
@@ -74,7 +74,8 @@
, builderBuild_
) where
-import GHC.Prim
+import GHC.Exts (unsafeCoerce#)
+import GHC.Prim hiding (unsafeCoerce#)
import GHC.Types
import GHC.ST
import Data.Proxy
diff -u -r basement-0.0.11.orig/Basement/FinalPtr.hs basement-0.0.11/Basement/FinalPtr.hs
--- basement-0.0.11.orig/Basement/FinalPtr.hs 2021-02-21 15:21:24.832530579 -0500
+++ basement-0.0.11/Basement/FinalPtr.hs 2021-02-21 15:22:24.943126168 -0500
@@ -25,7 +25,7 @@
) where
import GHC.Ptr
-import GHC.ForeignPtr
+import GHC.ForeignPtr hiding (FinalPtr)
import GHC.IO
import Basement.Monad
import Basement.Compat.Primitive
diff -u -r basement-0.0.11.orig/Basement/Monad.hs basement-0.0.11/Basement/Monad.hs
--- basement-0.0.11.orig/Basement/Monad.hs 2021-02-21 15:21:24.832530579 -0500
+++ basement-0.0.11/Basement/Monad.hs 2021-02-21 15:22:24.943126168 -0500
@@ -33,7 +33,8 @@
import GHC.STRef
import GHC.IORef
import GHC.IO
-import GHC.Prim
+import GHC.Exts (unsafeCoerce#)
+import GHC.Prim hiding (unsafeCoerce#)
import Basement.Compat.Base (Exception, (.), ($), Applicative, Monad)
-- | Primitive monad that can handle mutation.
Only in basement-0.0.11: basement-0.0.11-ghc-9-compatibility.patch
DIST blaze-markup-0.8.2.7.tar.gz 14571 BLAKE2B cf432ff60d427e5ce944159533150dad5c0a0758381131f11742b9549a7dfe026c22735d146c882eec5485acc8b0835595c2a5f99ec0c6008e50c1d239d9b81d SHA512 1358049257481a50744a4d38fe3924fb0c9e57466e6d12fadd1dc377ac1452a5055877d1ac503d1e7a9ef92c6de8bc27e8d550f204f19c806f8377b84c69025c
EBUILD blaze-markup-0.8.2.7.ebuild 1119 BLAKE2B 4508e5eb2cffd71f0d2b474b07ceb3b172f117be1bcbf2cbbf6848635983a5d1d6ce5d96291b1d2bf3f794e141a632db15443a95ac62c288413550f13700f3db SHA512 16951edb1f1f7cd673d085eee299743c8fb24896fd3e7453d5e479d16e33acef20c556771136c953861afa9c3a900c4d5b68a0bad103eef5c579655ad7be4668
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# ebuild generated by hackport 0.6.6.9999
CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal
DESCRIPTION="A blazingly fast markup combinator library for Haskell"
HOMEPAGE="http://jaspervdj.be/blaze"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=dev-haskell/blaze-builder-0.3:=[profile?] <dev-haskell/blaze-builder-0.5:=[profile?]
>=dev-haskell/text-0.10:=[profile?] <dev-haskell/text-1.3:=[profile?]
>=dev-lang/ghc-7.4.1:=
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.10
test? ( >=dev-haskell/hunit-1.2 <dev-haskell/hunit-1.7
>=dev-haskell/quickcheck-2.7 <dev-haskell/quickcheck-2.15
>=dev-haskell/tasty-1.0 <dev-haskell/tasty-1.4
>=dev-haskell/tasty-hunit-0.10 <dev-haskell/tasty-hunit-0.11
>=dev-haskell/tasty-quickcheck-0.10 <dev-haskell/tasty-quickcheck-0.11 )
"
src_prepare() {
default
cabal_chdeps \
'base >= 4 && < 4.15' 'base >= 4'
}
DIST broadcast-chan-0.2.1.1.tar.gz 15658 BLAKE2B 1d109ee8c3b7028465259e0a093608dc57dc4548d367a64ffcff251518e714f340f3ed75aa4aabf0c3543fee426f416fd6b0b26b4e1eaf1158356462bd6a4694 SHA512 0484a81b5bfc53ad9513f97bf0c0fe6e1b894eac19dcd1cdf7bbd67930ac21dd702b70a78460bf3518ebadfb27cf03cd0d57200ef868803dd69d26f0fd880eb7
EBUILD broadcast-chan-0.2.1.1.ebuild 888 BLAKE2B 9ec9d00af2bf4f7b7526af512d7839c6027a84fb8174a224a649295e6a278378ecaf410e68a0007f16621c8514df7d155dacdca488b0a28ad4233f379d0e84c9 SHA512 93da01ba39efc9c8b52ac6b412283bb8da8f0f569e40edde28263b1adeb1aa93065270b811895d0643317cf1e49d6e0cce2838b6928f5d0f39f681352636dd31
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# ebuild generated by hackport 0.6.7.9999
CABAL_FEATURES="lib profile haddock hoogle hscolour"
inherit haskell-cabal
DESCRIPTION="Closable, fair, single-wakeup channel type that avoids 0 reader space leaks"
HOMEPAGE="https://github.com/merijn/broadcast-chan"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE="sync +threaded"
RDEPEND=">=dev-haskell/unliftio-core-0.1.1:=[profile?] <dev-haskell/unliftio-core-0.3:=[profile?]
>=dev-lang/ghc-7.10.1:=
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.22.2.0
"
src_prepare() {
default
cabal_chdeps \
'base >= 4.7 && < 4.15' 'base >= 4.8'
}
src_configure() {
haskell-cabal_src_configure \
$(cabal_flag sync sync) \
$(cabal_flag threaded threaded)
}
DIST cabal-doctest-1.0.8.tar.gz 10812 BLAKE2B ccfff885efdcb4e2d1233ef6e9a1ae6b2e2101dd0811634dd1be284439e3fe2ffa8f1817d3b1f5106a49365a848b2178c637450a23de7b326c4f476a0e73b3bb SHA512 121827f4f9117673c5c41beeaff2ef74f75ca55fba8460f6289d69b1ebfdebb9568f23b4b7d0ab2f3d436cbcdaa073709a26562b39e5f57a6a705088d0a2ff71
EBUILD cabal-doctest-1.0.8-r1.ebuild 768 BLAKE2B 8fc810d67b24f9189ed518a2f26ef1b3f086ba428768235102a96648e8908bf400bf81341cecac343cf54015875e7e6a1a0db08d22c524514aea1a4c00714d71 SHA512 7ac32f966c9771a1376fcddc5a1137ead216445884ef65bd088597227172ecd2c06e738f07a27e34c8af6efe343e2121b161da334e55305019a01e5202e6e147
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# ebuild generated by hackport 0.6.9999
CABAL_FEATURES="lib profile haddock hoogle hscolour"
inherit haskell-cabal
DESCRIPTION="A Setup.hs helper for doctests running"
HOMEPAGE="https://github.com/phadej/cabal-doctest"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=dev-haskell/cabal-1.10:=[profile?] <dev-haskell/cabal-3.5:=[profile?]
>=dev-lang/ghc-7.4.1:=
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.10
"
src_prepare() {
default
cabal_chdeps \
'base >=4.3 && <4.14' 'base >=4.3' \
'Cabal >=1.10 && <3.1' 'Cabal >=1.10 && <3.5'
}
DIST Cabal-3.4.0.0.tar.gz 836699 BLAKE2B 89fdb724b42a0865701a8c0d10055f05497afa372bfdf72b9915a7932ca6352035f9c492f1577a9dc46a459022144e278c2fa9e2e459c83380441fd260e4f64a SHA512 31b22a046f2a0981b4aaad6fea5353aad6c6e7345e9220ba85f40e00c52f1104081b0be854da1a2e14d83bb2a91c187d508b53cdd4636767a97a2ed0c6a7e7a4
EBUILD cabal-3.4.0.0.ebuild 1875 BLAKE2B 77eae553d812100ae4c048493f96b6dc3f7f06bf932831065878d0389ce5cd8287d662aa2c2831b48bf03f6f54ff2ec1cadfc32a3e7ba96c6ac68e315e6ee9d1 SHA512 940e3ae22b506d996539a403b79062c8742a9041e4bd037f03c3ba650b900d6ac901d249d609d7ff2b42253a579b7bcec55c85d73ab9e281ea9917754957cf0a
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# ebuild generated by hackport 0.6.7.9999
#hackport: flags: -bundled-binary-generic
# Drop test-suite due to "circular" dependencies with quickcheck
CABAL_FEATURES="lib profile haddock hoogle hscolour"
CABAL_FEATURES+=" nocabaldep" # in case installed Cabal is broken
inherit haskell-cabal
MY_PN="Cabal"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="A framework for packaging Haskell software"
HOMEPAGE="https://www.haskell.org/cabal/"
SRC_URI="https://hackage.haskell.org/package/${MY_P}/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" # ~ppc ~ppc64 ~ppc-macos ~x86-macos ~x86-solaris
IUSE=""
RESTRICT=test # circular deps: cabal -> quickcheck -> cabal
# GHC lower bound set to 8.0 to remove semigroups and fail dependencies.
RDEPEND=" >=dev-haskell/mtl-2.1:=[profile?] <dev-haskell/mtl-2.3:=[profile?]
>=dev-haskell/parsec-3.1.13.0:=[profile?] <dev-haskell/parsec-3.2:=[profile?]
>=dev-haskell/text-1.2.3.0:=[profile?] <dev-haskell/text-1.3:=[profile?]
>=dev-lang/ghc-8.0:=
"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"
src_prepare() {
default
# Cabal bootstraps with 'ghc --make' without package cleanup in environment.
# That causes module collisions at build:
# - pulseaudio: Distribution/Utils/Structured.hs:98:1: error: Ambiguous module name ‘Data.Time’: it was found in multiple packages: pulseaudio-0.0.2.1 time-1.9.3
# - kinds: Distribution/Utils/Structured.hs:106:1: error: Ambiguous module name ‘Data.Kind’: it was found in multiple packages: base-4.14.1.0 kinds-0.0.1.5
HCFLAGS="${HCFLAGS} -ignore-package=pulseaudio"
HCFLAGS="${HCFLAGS} -ignore-package=kinds"
}
src_configure() {
haskell-cabal_src_configure \
--flag=-bundled-binary-generic
}
CABAL_CORE_LIB_GHC_PV="PM:9.0.1 PM:9999"
AUX cryptonite-ghc-9-compatibility.patch 1823 BLAKE2B 99a502e16ec061b37e1d3dc343760c86c1eb1cecf23a9061ef3198082d2777fa129196af3322153558e1da7e87b125bfa3a1e32501482767bbbe2e4ca874d65f SHA512 1f00a31791fef52e7bdb2b052912f8ede9022ee4013d1f74321ff10517c4c8df68be9b97d4bfd88140f5686b3b9d01e0937909dd5a2c462920e559accde8e72d
DIST cryptonite-0.28.tar.gz 616309 BLAKE2B 3fa11777574fab06c264709d4de7b56fd4b276fbee93f4731683a9a18f83cf77d2042679f2eac3044d336c5be382e1e4eb0c90862c20b0f452eaafdee401e616 SHA512 c1e485522938f94f15910a5b5a4a3e4dfecbb62df463c80faaa51e9d883c2612611b8486bd0fd13660766cfb6d62d366fbbd03df2db874d525514aae247b6242
EBUILD cryptonite-0.28.ebuild 1551 BLAKE2B fb615da290ce9cc7797e7a620a0a4ddde2400cf323c55aea8ecbe4fc3dcdf5cff7f6eb17e40fb693ab6d07c4d510faa0fb431777d66e654f02b3397a1ccfc17c SHA512 426639137e3cd9c43dd489d4fdb34dc7c0928e9fd71e08fc73fa61379b89061d3557114e36d284781ea4a967c15e694bf7d40507adaba1648d993772cc0e74cf
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# ebuild generated by hackport 0.6.1.9999
#hackport: flags: -check_alignment,-old_toolchain_inliner,+support_deepseq,support_aesni:cpu_flags_x86_aes,support_pclmuldq:cpu_flags_x86_sse4_1,support_sse:cpu_flags_x86_sse,support_rdrand:cpu-flags-x86-rdrand
CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal
DESCRIPTION="Cryptography Primitives sink"
HOMEPAGE="https://github.com/haskell-crypto/cryptonite"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE="+cpu-flags-x86-rdrand +cpu_flags_x86_aes cpu_flags_x86_sse cpu_flags_x86_sse4_1 +integer-gmp"
RDEPEND=">=dev-haskell/basement-0.0.6:=[profile?]
>=dev-haskell/memory-0.14.18:=[profile?]
>=dev-lang/ghc-7.4.1:=
virtual/libc
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.18
test? ( dev-haskell/memory
dev-haskell/tasty
dev-haskell/tasty-hunit
dev-haskell/tasty-kat
dev-haskell/tasty-quickcheck )
"
src_prepare() {
default
eapply "${FILESDIR}/${PN}-ghc-9-compatibility.patch"
}
src_configure() {
haskell-cabal_src_configure \
--flag=-check_alignment \
$(cabal_flag integer-gmp integer-gmp) \
--flag=-old_toolchain_inliner \
$(cabal_flag cpu_flags_x86_aes support_aesni) \
--flag=support_deepseq \
$(cabal_flag cpu_flags_x86_sse4_1 support_pclmuldq) \
$(cabal_flag cpu-flags-x86-rdrand support_rdrand) \
$(cabal_flag cpu_flags_x86_sse support_sse)
}
From c5b2630ac396ad2d14ee1ed5d216907acaf2e79e Mon Sep 17 00:00:00 2001
From: amesgen <amesgen@amesgen.de>
Date: Thu, 11 Feb 2021 20:06:19 +0100
Subject: [PATCH] support GHC 9.0 (specifically, integer-gmp-1.1)
---
Crypto/Number/Compat.hs | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/Crypto/Number/Compat.hs b/Crypto/Number/Compat.hs
index 01e04559..39acdc8f 100644
--- a/Crypto/Number/Compat.hs
+++ b/Crypto/Number/Compat.hs
@@ -72,7 +72,9 @@ gmpLog2 _ = GmpUnsupported
-- | Compute the power modulus using extra security to remain constant
-- time wise through GMP
gmpPowModSecInteger :: Integer -> Integer -> Integer -> GmpSupported Integer
-#if MIN_VERSION_integer_gmp(1,0,2)
+#if MIN_VERSION_integer_gmp(1,1,0)
+gmpPowModSecInteger _ _ _ = GmpUnsupported
+#elif MIN_VERSION_integer_gmp(1,0,2)
gmpPowModSecInteger b e m = GmpSupported (powModSecInteger b e m)
#elif MIN_VERSION_integer_gmp(1,0,0)
gmpPowModSecInteger _ _ _ = GmpUnsupported
@@ -103,7 +105,9 @@ gmpInverse _ _ = GmpUnsupported
-- | Get the next prime from a specific value through GMP
gmpNextPrime :: Integer -> GmpSupported Integer
-#if MIN_VERSION_integer_gmp(0,5,1)
+#if MIN_VERSION_integer_gmp(1,1,0)
+gmpNextPrime _ = GmpUnsupported
+#elif MIN_VERSION_integer_gmp(0,5,1)
gmpNextPrime n = GmpSupported (nextPrimeInteger n)
#else
gmpNextPrime _ = GmpUnsupported
@@ -111,7 +115,9 @@ gmpNextPrime _ = GmpUnsupported
-- | Test if a number is prime using Miller Rabin
gmpTestPrimeMillerRabin :: Int -> Integer -> GmpSupported Bool
-#if MIN_VERSION_integer_gmp(0,5,1)
+#if MIN_VERSION_integer_gmp(1,1,0)
+gmpTestPrimeMillerRabin _ _ = GmpUnsupported
+#elif MIN_VERSION_integer_gmp(0,5,1)
gmpTestPrimeMillerRabin (I# tries) !n = GmpSupported $
case testPrimeInteger n tries of
0# -> False
DIST data-fix-0.3.1.tar.gz 5520 BLAKE2B e1123d735a1128e336f73b28d7edee677a85a54d3627a0db3449f20ec160974b68039f22621b77513bb0f73284eddee1d166b6234e3c15ae32c05b02d326fd95 SHA512 21eb328137a6e4d52a79c73c351e5a89f04747a5ed8188664408ce0aa544a57ab731e267d1d408bbac047ec6a2e9f73232e42e6aa45fcebf7204b6349eec9143
EBUILD data-fix-0.3.1.ebuild 711 BLAKE2B d2ccbc23ba192d9aee754c41b41514475599247ee53c1b15df9ddecf2c8e30e4613933dc49459279356468674d4e032992b13b4edd0284258ff6288a39202351 SHA512 7a0defca21da74ea6b69acfd4535b8e2efc95825b552e2ea37ff6d5e559f770f19f92650ddbc360a85852de883d1f252bc31ada94bf26841be09ac2c3fa203ca
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# ebuild generated by hackport 0.6.6.9999
CABAL_FEATURES="lib profile haddock hoogle hscolour"
inherit haskell-cabal
DESCRIPTION="Fixpoint data types"
HOMEPAGE="https://github.com/spell-music/data-fix"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=dev-haskell/hashable-1.2.7.0:=[profile?] <dev-haskell/hashable-1.4:=[profile?]
>=dev-haskell/transformers-compat-0.6.5:=[profile?] <dev-haskell/transformers-compat-0.7:=[profile?]
>=dev-lang/ghc-7.8.2:=
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.18.1.3
"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment