Commit c93d664b authored by Simon Peyton Jones's avatar Simon Peyton Jones

In ':show imports' take account of -XNoImplicitPrelude

Fixes Trac #8640
parent 053a9d15
......@@ -2229,6 +2229,7 @@ showImports = do
prel_imp
| any isPreludeImport (rem_ctx ++ trans_ctx) = []
| not (xopt Opt_ImplicitPrelude dflags) = []
| otherwise = ["import Prelude -- implicit"]
trans_comment s = s ++ " -- added automatically"
......
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