Malcolm Wallace | 13 Nov 11:31
Picon

Re: Pattern Matching

> (And, entertainingly, because the incorrect version is perfectly  
> valid source code, no compiler errors or warnings...)

If you actually turn on compiler warnings (-Wall), I think you will  
see something like

andrew.hs:10:10:
     Warning: This binding for `eVENT_QUIT' shadows the existing binding
                defined at EventLog.hs:43:0
              In a case alternative

and so forth, for every incorrect alternative.

Regards,
     Malcolm

Gmane