[project @ 2001-08-22 11:45:06 by sewardj]
[ghc-hetmet.git] / ghc / tests / deSugar / should_compile / ds031.hs
1 module ShouldCompile 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