Commit df1a0c0c authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari

typecheck: Consistently use pretty quotes in error messages

Subscribers: rwbarton, thomie, carter

Differential Revision: https://phabricator.haskell.org/D4241
parent 4efe5fed
......@@ -31,7 +31,6 @@ import Outputable
import ConLike
import DataCon
import PatSyn
import FastString
import Maybes
import Util (capitalise)
......@@ -657,17 +656,21 @@ dupModuleExport mod
moduleNotImported :: ModuleName -> SDoc
moduleNotImported mod
= text "The export item `module" <+> ppr mod <>
text "' is not imported"
= hsep [text "The export item",
quotes (text "module" <+> ppr mod),
text "is not imported"]
nullModuleExport :: ModuleName -> SDoc
nullModuleExport mod
= text "The export item `module" <+> ppr mod <> ptext (sLit "' exports nothing")
= hsep [text "The export item",
quotes (text "module" <+> ppr mod),
text "exports nothing"]
missingModuleExportWarn :: ModuleName -> SDoc
missingModuleExportWarn mod
= text "The export item `module" <+> ppr mod <>
ptext (sLit "' is missing an export list")
= hsep [text "The export item",
quotes (text "module" <+> ppr mod),
text "is missing an export list"]
dodgyExportWarn :: Name -> SDoc
......
......@@ -4,7 +4,7 @@
[1 of 1] Compiling A[sig] ( p/A.hsig, nothing )
bkpfail48.bkp:6:18: error:
• The export item `module Data.Bool' is not imported
• The export item module Data.Bool is not imported
• while merging the signatures from:
• q[A=<A>]:A
• ...and the local signature for A
mod135.hs:2:11: The export item `module Data.List' is not imported
mod135.hs:2:11: error:
The export item ‘module Data.List’ is not imported
mod8.hs:2:10: The export item `module N' is not imported
mod8.hs:2:10: error: The export item module N is not imported
rnfail028.hs:2:21: The export item `module List' is not imported
rnfail028.hs:2:21: error:
The export item ‘module List’ is not imported
MissingExportList03.hs:1:1: [-Wmissing-export-lists, -Werror=missing-export-lists]
The export item `module ShouldFail' is missing an export list
MissingExportList03.hs:1:1: error: [-Wmissing-export-lists, -Werror=missing-export-lists]
The export item ‘module ShouldFail’ is missing an export list
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment