summaryrefslogtreecommitdiff
path: root/app-emulation/ganeti-htools/files/ganeti-htools-0.3.1-ghc-7.10.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-emulation/ganeti-htools/files/ganeti-htools-0.3.1-ghc-7.10.patch
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-emulation/ganeti-htools/files/ganeti-htools-0.3.1-ghc-7.10.patch')
-rw-r--r--app-emulation/ganeti-htools/files/ganeti-htools-0.3.1-ghc-7.10.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/app-emulation/ganeti-htools/files/ganeti-htools-0.3.1-ghc-7.10.patch b/app-emulation/ganeti-htools/files/ganeti-htools-0.3.1-ghc-7.10.patch
new file mode 100644
index 000000000000..51c39fe5fce5
--- /dev/null
+++ b/app-emulation/ganeti-htools/files/ganeti-htools-0.3.1-ghc-7.10.patch
@@ -0,0 +1,29 @@
+diff --git a/Ganeti/HTools/Types.hs b/Ganeti/HTools/Types.hs
+index 104bf64..8146870 100644
+--- a/Ganeti/HTools/Types.hs
++++ b/Ganeti/HTools/Types.hs
+@@ -65,2 +65,4 @@ import qualified Data.Map as M
+ import qualified Text.JSON as JSON
++import Control.Applicative
++import Control.Monad
+
+@@ -221,2 +223,9 @@ data Result a
+
++instance Functor Result where
++ fmap = liftM
++
++instance Applicative Result where
++ pure = return
++ (<*>) = ap -- defined in Control.Monad
++
+ instance Monad Result where
+@@ -252,2 +261,9 @@ data OpResult a = OpFail FailMode -- ^ Failed operation
+
++instance Functor OpResult where
++ fmap = liftM
++
++instance Applicative OpResult where
++ pure = return
++ (<*>) = ap -- defined in Control.Monad
++
+ instance Monad OpResult where