[Haskell-cafe] ????Pattern match(es) are overlapped???

Stefan Holdermans sholderm at students.cs.uu.nl
Mon Mar 22 11:44:11 EST 2004


Hi,

> Or (I assume, haven't tested) if you insist on renaming the methods:
> 
>   doMeth m | m == getMethod = ...
>            | m == putMethod = ... 

This, of course, assumes that you've derived (or declared) Method an
instance of Eq.

Regards,

Stefan




More information about the Haskell-Cafe mailing list