Ticket #3303: fix-deprecation-formatting.dpatch

File fix-deprecation-formatting.dpatch, 1.1 KB (added by duncan, 6 years ago)
Line 
1Sun Nov 15 15:56:17 GMT 2009  Duncan Coutts <[email protected]>
2  * Fix formatting of module deprecation/warning messages
3  It was accidentally using list syntax. Fixes #3303 again.
4
5New patches:
6
7[Fix formatting of module deprecation/warning messages
8Duncan Coutts <[email protected]>**20091115155617
9 Ignore-this: a41444bdda003aee4412eb56a0e7d052
10 It was accidentally using list syntax. Fixes #3303 again.
11] {
12hunk ./compiler/rename/RnNames.lhs 1478
13 moduleWarn :: ModuleName -> WarningTxt -> SDoc
14 moduleWarn mod (WarningTxt txt)
15   = sep [ ptext (sLit "Module") <+> quotes (ppr mod) <> ptext (sLit ":"),
16-          nest 4 (ppr txt) ]
17+          nest 2 (vcat (map ppr txt)) ]
18 moduleWarn mod (DeprecatedTxt txt)
19   = sep [ ptext (sLit "Module") <+> quotes (ppr mod)
20                                 <+> ptext (sLit "is deprecated:"),
21hunk ./compiler/rename/RnNames.lhs 1482
22-          nest 4 (ppr txt) ]
23+          nest 2 (vcat (map ppr txt)) ]
24 
25 implicitPreludeWarn :: SDoc
26 implicitPreludeWarn
27}
28
29Context:
30
31[TAG 2009-11-15
32Ian Lynagh <[email protected]>**20091115155059]
33Patch bundle hash:
34d9ecc86c887279e687b83215f0570fec3ee40467