diff --git a/compiler/typecheck/TcRnExports.hs b/compiler/typecheck/TcRnExports.hs
index e2b6a61bfa2887bfc709595082b5d034d02362db..f89206503e604ae76dd63a8feffc414a05e5dd56 100644
--- a/compiler/typecheck/TcRnExports.hs
+++ b/compiler/typecheck/TcRnExports.hs
@@ -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
diff --git a/testsuite/tests/backpack/should_fail/bkpfail48.stderr b/testsuite/tests/backpack/should_fail/bkpfail48.stderr
index 9c991d6fc94510ef0dfdf64244646515f8aa378e..cb0740d8bf3ada6525db70c2119cdc71e0caba77 100644
--- a/testsuite/tests/backpack/should_fail/bkpfail48.stderr
+++ b/testsuite/tests/backpack/should_fail/bkpfail48.stderr
@@ -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
diff --git a/testsuite/tests/module/mod135.stderr b/testsuite/tests/module/mod135.stderr
index a08f93cb67161ec361838b0dcbcb9c6bb8d12217..197bc93c54796e193bab3fbe5893f8ee6370f3ec 100644
--- a/testsuite/tests/module/mod135.stderr
+++ b/testsuite/tests/module/mod135.stderr
@@ -1,2 +1,3 @@
 
-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
diff --git a/testsuite/tests/module/mod8.stderr b/testsuite/tests/module/mod8.stderr
index cba84c850294b3214b37757aef0a6b000b199168..d06d6903ac586024244fcd6d46f9ceac7d674378 100644
--- a/testsuite/tests/module/mod8.stderr
+++ b/testsuite/tests/module/mod8.stderr
@@ -1,2 +1,2 @@
 
-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
diff --git a/testsuite/tests/rename/should_fail/rnfail028.stderr b/testsuite/tests/rename/should_fail/rnfail028.stderr
index f09cda3f3376ef66f058c64adaddea9759795b4f..848e39e920d5076ecbdf9bbfd3e3424a03e1f0f4 100644
--- a/testsuite/tests/rename/should_fail/rnfail028.stderr
+++ b/testsuite/tests/rename/should_fail/rnfail028.stderr
@@ -1,2 +1,3 @@
 
-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
diff --git a/testsuite/tests/typecheck/should_fail/MissingExportList03.stderr b/testsuite/tests/typecheck/should_fail/MissingExportList03.stderr
index f4258de0b4faf20e8a27d5314f1917fefa9c1bb3..897db53661948a0672bfd0efbb3d52926ca2f49c 100644
--- a/testsuite/tests/typecheck/should_fail/MissingExportList03.stderr
+++ b/testsuite/tests/typecheck/should_fail/MissingExportList03.stderr
@@ -1,2 +1,3 @@
-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