summaryrefslogtreecommitdiff
path: root/dev-haskell/hex/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
commit3cf7c3ef441822c889356fd1812ebf2944a59851 (patch)
treec513fe68548b40365c1c2ebfe35c58ad431cdd77 /dev-haskell/hex/files
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'dev-haskell/hex/files')
-rw-r--r--dev-haskell/hex/files/hex-0.1.2-monadfail.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-haskell/hex/files/hex-0.1.2-monadfail.patch b/dev-haskell/hex/files/hex-0.1.2-monadfail.patch
new file mode 100644
index 000000000000..27caaf0774f2
--- /dev/null
+++ b/dev-haskell/hex/files/hex-0.1.2-monadfail.patch
@@ -0,0 +1,20 @@
+--- hex-0.1.2/Data/Hex.hs 2011-10-11 05:44:11.000000000 +1100
++++ Data/Hex.hs 2020-08-01 12:28:49.166983032 +1000
+@@ -22,7 +22,7 @@
+ -- | Convert string into hexadecimal.
+ hex :: t -> t
+ -- | Convert from hexadecimal and fail on invalid input.
+- unhex :: Monad m => t -> m t
++ unhex :: (Monad m, MonadFail m) => t -> m t
+
+
+ instance Hex String where
+@@ -37,7 +37,7 @@
+ unhex [_] = fail "Non-even length"
+
+
+-c :: Monad m => Char -> m Int
++c :: (Monad m, MonadFail m) => Char -> m Int
+ c '0' = return 0
+ c '1' = return 1
+ c '2' = return 2