summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar/should_compile/ds031.hs
blob: 5f25c15b196bd518afacf1bd1de44339ddf3795d (plain)
1
2
3
4
5
6
7
module ShouldCompile where

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