Byron Cook <[EMAIL PROTECTED]> asks:
> Should Hugs (January 98) accept this:
> 
> two = 1
> two = 2
> 
> It does, but I dont think it should.
> 
> However, I suppose that it's consistent with the treatment of
> function defns.  
> 
> any thoughts?

Strangely enough, it's legal Haskell!
So is this:

  f [] = 1
  f [] = 2

The right fix would be to detect overlapping patterns (of which your 
example is a particularily simple case) but, as usual, this isn't
anywhere near the highest priority on our ToDo list (see Hugs news page).


Alastair

Reply via email to