[Haskell-cafe] Pattern Matching

Malcolm Wallace malcolm.wallace at cs.york.ac.uk
Fri Nov 13 05:31:35 EST 2009

> (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

     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.


More information about the Haskell-Cafe mailing list