Ppr instance for Dec.
Lemmih <[email protected]> Fri, 1 Apr 2005 15:19:15 +0200
| Newsgroups | gmane.comp.lang.haskell.template |
|---|---|
| Message-ID | <[email protected]> |
Greetings, I noticed this code in Language.Haskell.TH.Ppr: > ppr (ClassD ctxt c xs fds ds) = text "class" <+> pprCxt ctxt > <+> ppr c <+> hsep (map ppr xs) <+> ppr fds > $$ where_clause ds > ppr (InstanceD ctxt i ds) = text "instance" <+> pprCxt ctxt <+> ppr i > $$ where_clause ds shouldn't it be: > ppr (ClassD ctxt c xs fds ds) = text "class" <+> pprCxt ctxt > <+> ppr c <+> hsep (map ppr xs) <+> ppr fds > $$ nest nestDepth (where_clause ds) > ppr (InstanceD ctxt i ds) = text "instance" <+> pprCxt ctxt <+> ppr i > $$ nest nestDepth (where_clause ds) -- Friendly, Lemmih