[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git] / ghc / compiler / tests / deSugar / ds031.hs
diff --git a/ghc/compiler/tests/deSugar/ds031.hs b/ghc/compiler/tests/deSugar/ds031.hs
new file mode 100644 (file)
index 0000000..6454e08
--- /dev/null
@@ -0,0 +1,5 @@
+foldPair :: (a->a->a,b->b->b) -> (a,b) -> [(a,b)] -> (a,b)
+foldPair fg       ab [] = ab
+foldPair fg@(f,g) ab ((a,b):abs) = (f a u,g b v)
+                       where (u,v) = foldPair fg ab abs
+