1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
{-# LANGUAGE TemplateHaskell #-} -- Tickles a GHC 6.4 buglet module ShouldCompile where class Foo a where foo :: a -> a foo = id -- Splice an instance decl that uses the default method $( [d| instance Foo () where |] )