X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fstranal%2FSaLib.lhs;h=2561d972cb8928c2a1c0ae6183e049d328476169;hp=338a351530dc207e53e0468f7846dc7ede7cc516;hb=c8ef1c4a3da7b86516866d8e30e81ef4f9a06041;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1 diff --git a/compiler/stranal/SaLib.lhs b/compiler/stranal/SaLib.lhs index 338a351..2561d97 100644 --- a/compiler/stranal/SaLib.lhs +++ b/compiler/stranal/SaLib.lhs @@ -6,6 +6,13 @@ See also: the ``library'' for the ``back end'' (@SaBackLib@). \begin{code} +{-# OPTIONS -w #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings +-- for details + #ifndef OLD_STRICTNESS module SaLib () where #else @@ -80,12 +87,12 @@ mkAbsApproxFun d (AbsApproxFun ds val) = AbsApproxFun (d:ds) val mkAbsApproxFun d val = AbsApproxFun [d] val instance Outputable AbsVal where - ppr AbsTop = ptext SLIT("AbsTop") - ppr AbsBot = ptext SLIT("AbsBot") - ppr (AbsProd prod) = hsep [ptext SLIT("AbsProd"), ppr prod] - ppr (AbsFun bndr_ty body) = ptext SLIT("AbsFun") + ppr AbsTop = ptext (sLit "AbsTop") + ppr AbsBot = ptext (sLit "AbsBot") + ppr (AbsProd prod) = hsep [ptext (sLit "AbsProd"), ppr prod] + ppr (AbsFun bndr_ty body) = ptext (sLit "AbsFun") ppr (AbsApproxFun demands val) - = ptext SLIT("AbsApprox") <+> brackets (interpp'SP demands) <+> ppr val + = ptext (sLit "AbsApprox") <+> brackets (interpp'SP demands) <+> ppr val \end{code} %-----------