X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Futils%2FOutputable.lhs;h=455cea2f27135bcb894abc5d9754d99bc2a36af2;hb=ca5a4a480d10d61e5b7a52eb4d556e8b8c33e69d;hp=aeb06ebbaeda82a3a450a042c2253d997539381c;hpb=7b0181919416d8f04324575b7e17031ca692f5b0;p=ghc-hetmet.git diff --git a/ghc/compiler/utils/Outputable.lhs b/ghc/compiler/utils/Outputable.lhs index aeb06eb..455cea2 100644 --- a/ghc/compiler/utils/Outputable.lhs +++ b/ghc/compiler/utils/Outputable.lhs @@ -46,20 +46,9 @@ interppSP sty xs = ppIntersperse ppSP (map (ppr sty) xs) interpp'SP :: Outputable a => PprStyle -> [a] -> Pretty interpp'SP sty xs - = ppInterleave sep (map (ppr sty) xs) + = ppIntersperse sep (map (ppr sty) xs) where sep = ppBeside ppComma ppSP - -#ifdef USE_ATTACK_PRAGMAS -{-# SPECIALIZE interppSP :: PprStyle -> [Id] -> Pretty #-} -{-# SPECIALIZE interppSP :: PprStyle -> [TyVar] -> Pretty #-} - -{-# SPECIALIZE interpp'SP :: PprStyle -> [(Id, Id)] -> Pretty #-} -{-# SPECIALIZE interpp'SP :: PprStyle -> [Id] -> Pretty #-} -{-# SPECIALIZE interpp'SP :: PprStyle -> [TyVarTemplate] -> Pretty #-} -{-# SPECIALIZE interpp'SP :: PprStyle -> [TyVar] -> Pretty #-} -{-# SPECIALIZE interpp'SP :: PprStyle -> [Type] -> Pretty #-} -#endif \end{code} \begin{code}