summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Todaro <solpeth@posteo.org>2020-07-30 11:48:14 +1000
committerSergei Trofimovich <slyfox@gentoo.org>2020-08-01 09:02:50 +0100
commitdfb5aa184a006d1015514eeeb2c48482ffb4738d (patch)
treee31cd756193e2c46defc79470ed49cfd81033e69 /dev-haskell/rsa/files/rsa-2.3.1-p3-ghc-8.8.patch
parentdev-haskell/drbg: add package (diff)
downloadgentoo-dfb5aa184a006d1015514eeeb2c48482ffb4738d.tar.gz
gentoo-dfb5aa184a006d1015514eeeb2c48482ffb4738d.tar.bz2
gentoo-dfb5aa184a006d1015514eeeb2c48482ffb4738d.zip
dev-haskell/rsa: add package
Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Jack Todaro <solpeth@posteo.org> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-haskell/rsa/files/rsa-2.3.1-p3-ghc-8.8.patch')
-rw-r--r--dev-haskell/rsa/files/rsa-2.3.1-p3-ghc-8.8.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-haskell/rsa/files/rsa-2.3.1-p3-ghc-8.8.patch b/dev-haskell/rsa/files/rsa-2.3.1-p3-ghc-8.8.patch
new file mode 100644
index 000000000000..6aebe6fab6ce
--- /dev/null
+++ b/dev-haskell/rsa/files/rsa-2.3.1-p3-ghc-8.8.patch
@@ -0,0 +1,23 @@
+commit bb712862c868975ab033e1079751d9e3787d3a33
+Author: Ollie Charles <ollie@ocharles.org.uk>
+Date: Wed Sep 18 14:54:22 2019 +0100
+
+ Update Test.hs
+
+diff --git a/Test.hs b/Test.hs
+index dd61302..4fa26ca 100644
+--- a/Test.hs
++++ b/Test.hs
+@@ -98,10 +98,10 @@ instance Arbitrary LargePrime where
+ arbitrary =
+ do seed <- BSS.pack `fmap` replicateM 4096 arbitrary
+ case newGen seed of
+- Left _ -> fail "DRBG initialization error."
++ Left _ -> error "DRBG initialization error."
+ Right (g :: HashDRBG) ->
+ case largeRandomPrime g 64 of
+- Left _ -> fail "Large prime generation failure."
++ Left _ -> error "Large prime generation failure."
+ Right (i, _) -> return (LP i)
+
+ data KeyPairIdx = KPI Int