projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
33113cc07d79899897db6cbd4d920ded7f0b1fdc
[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]