id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
2106,parts of Language.Haskell.TH.Ppr in wrong package?,Frederik,,"Hello, should the following functions (and possibly others) from 'template' be in the 'pretty' package instead?

{{{
pprint :: Ppr a => a -> String
pprint x = render $ to_HPJ_Doc $ ppr x

class Ppr a where
    ppr :: a -> Doc
    ppr_list :: [a] -> Doc
    ppr_list = vcat . map ppr

instance Ppr a => Ppr [a] where
    ppr x = ppr_list x
}}}

I guess they can't be moved exactly as they are because the Doc type is different between the packages, however, I was looking for a class of ""pretty-printable"" values and it is strange that the only such class seems to be Ppr in the 'template' package...
",bug,closed,normal,,libraries/pretty,6.8.2,wontfix,,,Unknown/Multiple,Unknown/Multiple,,Unknown,,,,
