:2:68: Multiple declarations of ‘f’ Declared at: :2:32 :2:68 In the Template Haskell quotation [d| f = undefined class Foo x where f :: x -> x instance Foo Int where f = id |]