Commit 1da2d7ca authored by Dmitry Bogatov's avatar Dmitry Bogatov
Browse files

haskell-monadplus: patch to build with ghc-8.4

parent 0968ef98
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
haskell-monadplus (1.4.2-6) unstable; urgency=medium

  * Non-maintainer upload.
  * Patch to build with ghc-8.4

 -- Dmitry Bogatov <KAction@gnu.org>  Thu, 04 Oct 2018 12:01:12 +0000

haskell-monadplus (1.4.2-5) unstable; urgency=medium

  [ Clint Adams ]
+14 −0
Original line number Diff line number Diff line
Index: haskell-monadplus/src/Control/Monad/Plus.hs
===================================================================
--- haskell-monadplus.orig/src/Control/Monad/Plus.hs
+++ haskell-monadplus/src/Control/Monad/Plus.hs
@@ -253,6 +253,9 @@ instance Alternative (Partial r) where
     empty = Partial (const Nothing)
     Partial f <|> Partial g = Partial $ \x -> f x <|> g x
 
+instance Semigroup (Partial a b) where
+  (<>) = mappend
+
 instance Monoid (Partial a b) where
     mempty  = mzero
     mappend = mplus
+1 −0
Original line number Diff line number Diff line
patch-build-with-ghc-8.4.patch