summaryrefslogtreecommitdiff
path: root/src/runtime/haskell/Data
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/haskell/Data')
-rw-r--r--src/runtime/haskell/Data/Binary/Builder.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/haskell/Data/Binary/Builder.hs b/src/runtime/haskell/Data/Binary/Builder.hs
index 03531daa7..b69371f0e 100644
--- a/src/runtime/haskell/Data/Binary/Builder.hs
+++ b/src/runtime/haskell/Data/Binary/Builder.hs
@@ -100,6 +100,11 @@ newtype Builder = Builder {
runBuilder :: (Buffer -> [S.ByteString]) -> Buffer -> [S.ByteString]
}
+#if MIN_VERSION_base(4,11,0)
+instance Semigroup Builder where
+ (<>) = append
+#endif
+
instance Monoid Builder where
mempty = empty
{-# INLINE mempty #-}