[project @ 1997-09-25 14:35:16 by simonm]
[ghc-hetmet.git] / ghc / tests / deSugar / should_compile / ds031.hs
1 module ShouldSucceed where
2
3 foldPair :: (a->a->a,b->b->b) -> (a,b) -> [(a,b)] -> (a,b)
4 foldPair fg       ab [] = ab
5 foldPair fg@(f,g) ab ((a,b):abs) = (f a u,g b v)
6                        where (u,v) = foldPair fg ab abs
7