X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FhsSyn%2FHsExpr.lhs;h=5b552c6385bd7dc5a3d813a646f2701bf7559c50;hb=ce43dfc719eda4752d8de67cefb61d03b05b8e3c;hp=883015549a18ea09a6ddcbce1c4fee0f63367717;hpb=a8427a4125e9b78e88a487eeabf018f1c6e8bc08;p=ghc-hetmet.git diff --git a/compiler/hsSyn/HsExpr.lhs b/compiler/hsSyn/HsExpr.lhs index 8830155..5b552c6 100644 --- a/compiler/hsSyn/HsExpr.lhs +++ b/compiler/hsSyn/HsExpr.lhs @@ -6,6 +6,13 @@ HsExpr: Abstract Haskell syntax: expressions \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 + module HsExpr where #include "HsVersions.h" @@ -868,7 +875,7 @@ instance OutputableBndr id => Outputable (HsSplice id) where ppr = pprSplice pprSplice :: OutputableBndr id => HsSplice id -> SDoc -pprSplice (HsSplice n e) = char '$' <> brackets (ppr n) <> pprParendExpr e +pprSplice (HsSplice n e) = char '$' <> ifPprDebug (brackets (ppr n)) <> pprParendExpr e data HsBracket id = ExpBr (LHsExpr id) -- [| expr |]