projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 1997-05-26 05:58:06 by sof]
[ghc-hetmet.git]
/
ghc
/
compiler
/
tests
/
deSugar
/
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