X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcClassDcl.lhs;h=0f91f6b9e7a704b444fef7d2fe0244c2bb1d24ab;hb=d93785d99261a433075dcbac8c388730a4dec64f;hp=542ce20a603240e0a04d215db7a31192d245396a;hpb=a3bab0506498db41853543558c52a4fda0d183af;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcClassDcl.lhs b/compiler/typecheck/TcClassDcl.lhs index 542ce20..0f91f6b 100644 --- a/compiler/typecheck/TcClassDcl.lhs +++ b/compiler/typecheck/TcClassDcl.lhs @@ -408,9 +408,8 @@ getGenericInstances class_decls else do -- Otherwise print it out - { dflags <- getDOpts - ; liftIO (dumpIfSet_dyn dflags Opt_D_dump_deriv "Generic instances" - (vcat (map pprInstInfoDetails gen_inst_info))) + { dumpDerivingInfo $ hang (ptext (sLit "Generic instances")) + 2 (vcat (map pprInstInfoDetails gen_inst_info)) ; return gen_inst_info }} get_generics :: TyClDecl Name -> TcM [InstInfo Name]