Why is this function type-correct
4 Mar
2002
4 Mar
'02
2:09 p.m.
Hello, Recently, I wrote a function similar to x :: a x = x 42 which is type-correct (Hugs, Ghc, THIH). Still, from the expression it is clear that the type shoud have a function type. The definition x :: a -> b x = x 42 is equally well accepted, though I can't see why this type would be correct. (I'd expect it to be too general.)
8945
Age (days ago)
8945
Last active (days ago)
0 comments
1 participants
participants (1)
-
Rijk J. C. van Haaften