X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FbasicTypes%2FBasicTypes.lhs;h=0182139b761b26e827ddd03dc463274425bed7f0;hb=79e9cfa32cc3b94428e1199ce550bb62c50bf8e6;hp=fad6533144b2003ed16dc47a3d18cafe7ff61a07;hpb=4bc25e8c30559b7a6a87b39afcc79340ae778788;p=ghc-hetmet.git diff --git a/compiler/basicTypes/BasicTypes.lhs b/compiler/basicTypes/BasicTypes.lhs index fad6533..0182139 100644 --- a/compiler/basicTypes/BasicTypes.lhs +++ b/compiler/basicTypes/BasicTypes.lhs @@ -119,13 +119,14 @@ initialVersion = 1 \begin{code} -- reason/explanation from a WARNING or DEPRECATED pragma -data WarningTxt = WarningTxt FastString - | DeprecatedTxt FastString +data WarningTxt = WarningTxt [FastString] + | DeprecatedTxt [FastString] deriving Eq instance Outputable WarningTxt where - ppr (WarningTxt w) = doubleQuotes (ftext w) - ppr (DeprecatedTxt d) = text "Deprecated:" <+> doubleQuotes (ftext d) + ppr (WarningTxt ws) = doubleQuotes (vcat (map ftext ws)) + ppr (DeprecatedTxt ds) = text "Deprecated:" <+> + doubleQuotes (vcat (map ftext ds)) \end{code} %************************************************************************