Commit 4d014cdb authored by chak@cse.unsw.edu.au.'s avatar chak@cse.unsw.edu.au.

tcfail145 error message improved, too

parent 6b3d3672
tcfail145.hs:9:0:
Occurs check: cannot construct the infinite type: a = [a]
When generalising the type(s) for `foo'
tcfail145.hs:9:5:
Pattern signature must exactly match: forall a. a -> a
In the pattern: f :: forall a. [a] -> [a]
In the definition of `foo':
foo (f :: forall a. [a] -> [a]) = f undefined
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment