constraints inside classes

Ross Paterson ross@soi.city.ac.uk
Fri, 22 Feb 2002 18:04:20 +0000


Hugs and GHC (but not NHC) erroneously accept the following:

class Foo a where
        f :: Eq a => a -> Bool