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