summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-12-14 17:26:43 -0500
committerBen Gamari <ben@smart-cactus.org>2017-12-18 11:32:30 -0500
commit8c9906c5ce3f9ebd6417a1cdbe3e2a007c4cccd0 (patch)
treed6fba0ac9ece38d810d988d77fedd737c2a4a4d9 /testsuite
parent030243953d522f2f8185ae417869a94d5f86210f (diff)
downloadhaskell-8c9906c5ce3f9ebd6417a1cdbe3e2a007c4cccd0.tar.gz
testsuite: Semigroup/Monoid compat for T3001-2
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/profiling/should_run/T3001-2.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/tests/profiling/should_run/T3001-2.hs b/testsuite/tests/profiling/should_run/T3001-2.hs
index 5a84dcc69d..17fa0c9c48 100644
--- a/testsuite/tests/profiling/should_run/T3001-2.hs
+++ b/testsuite/tests/profiling/should_run/T3001-2.hs
@@ -7,7 +7,7 @@
module Main (main) where
-import Data.Monoid
+import Data.Semigroup
import Data.ByteString.Internal (inlinePerformIO)
@@ -284,6 +284,9 @@ flush = Builder $ \ k buf@(Buffer p o u l) ->
emptyBuilder :: Builder
emptyBuilder = Builder id
+instance Semigroup Builder where
+ (<>) = append
+
instance Monoid Builder where
mempty = emptyBuilder
mappend = append