Commit c7879cdc authored by Dmitry Bogatov's avatar Dmitry Bogatov
Browse files

haskell-enumerator: patch to build with ghc-8.4

parent 7ca3bff9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
haskell-enumerator (0.4.20-10) unstable; urgency=medium

  * Patch to build with ghc-8.4

 -- Dmitry Bogatov <KAction@gnu.org>  Fri, 05 Oct 2018 00:56:15 +0000

haskell-enumerator (0.4.20-9) unstable; urgency=medium

  * Remove build dependency on libghc-text-dev (provided by ghc-8.4.3)
+14 −0
Original line number Diff line number Diff line
Index: haskell-enumerator/lib/Data/Enumerator/Internal.hs
===================================================================
--- haskell-enumerator.orig/lib/Data/Enumerator/Internal.hs
+++ haskell-enumerator/lib/Data/Enumerator/Internal.hs
@@ -71,6 +71,9 @@ instance Monad Stream where
 	Chunks xs >>= f = mconcat (fmap f xs)
 	EOF >>= _ = EOF
 
+instance Semigroup (Stream a) where
+	(<>) = mappend
+
 instance Monoid (Stream a) where
 	mempty = Chunks mempty
 	mappend (Chunks xs) (Chunks ys) = Chunks (xs ++ ys)
+1 −0
Original line number Diff line number Diff line
patch-to-build-with-ghc-8.4.patch