projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git]
/
ghc
/
compiler
/
tests
/
typecheck
/
should_succeed
/
tc040.hs
1
module ShouldSucceed where
2
3
--!!! tests the deduction of contexts.
4
5
f :: (Eq a) => a -> [a]
6
7
f x = g x
8
where
9
g y = if (y == x) then [] else [y]