Multiple definitions does not result in an error
30 Aug
2006
30 Aug
'06
4:39 p.m.
Hi, The following code:
f a = undefined f :: a -> b f a = undefined
Under Hugs May 2006 does not raise an error. Under GHC: Multiple declarations of `Main.f' Under Yhc: Error: Redefinition of Identifier f at 5:1-5:15 I guess Hugs is wrong in this case. Thanks Neil
30 Aug
30 Aug
7:02 p.m.
On Wed, Aug 30, 2006 at 05:39:07PM +0100, Neil Mitchell wrote:
The following code:
f a = undefined f :: a -> b f a = undefined
Under Hugs May 2006 does not raise an error. I guess Hugs is wrong in this case.
Yes, function bindings are supposed to be contiguous. Now fixed.
7239
Age (days ago)
7239
Last active (days ago)
1 comments
2 participants
participants (2)
-
Neil Mitchell -
Ross Paterson