summaryrefslogtreecommitdiff
path: root/testsuite/tests/perf/should_run/T2902_Sum.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/perf/should_run/T2902_Sum.hs')
-rw-r--r--testsuite/tests/perf/should_run/T2902_Sum.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/perf/should_run/T2902_Sum.hs b/testsuite/tests/perf/should_run/T2902_Sum.hs
new file mode 100644
index 0000000000..9be6b10568
--- /dev/null
+++ b/testsuite/tests/perf/should_run/T2902_Sum.hs
@@ -0,0 +1,14 @@
+
+{-# LANGUAGE UnicodeSyntax, MultiParamTypeClasses #-}
+
+module T2902_Sum (Sum(..)) where
+
+class Sum c a b where
+ insert ∷ a → b → c a b → c a b
+ union ∷ c a b → c a b → c a b
+ unions ∷ [c a b] → c a b
+ extractMin ∷ c a b → ((a,b), c a b)
+
+ fromList ∷ [(a,b)] → c a b
+ toList ∷ c a b → [(a,b)]
+