1 2 3 4 5 6 7
{-# LANGUAGE Haskell2010 #-} module ShouldFail where -- in Haskell 98, methods must mention the class variable -- (SourceForge bug #756454). class Foo a where bug :: ()