diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2014-01-02 15:16:32 +0000 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2014-01-02 15:16:56 +0000 |
commit | c93d664baa552e43c915e995663aa624bcfcd6ff (patch) | |
tree | 9f57ddf7f1c6bfda279744788e4cf7f5c3c052e8 /ghc | |
parent | 053a9d15031b0b33adc77eaadc5536a43dc7de33 (diff) | |
download | haskell-c93d664baa552e43c915e995663aa624bcfcd6ff.tar.gz |
In ':show imports' take account of -XNoImplicitPrelude
Fixes Trac #8640
Diffstat (limited to 'ghc')
-rw-r--r-- | ghc/InteractiveUI.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ghc/InteractiveUI.hs b/ghc/InteractiveUI.hs index be97bc0a15..c007a1c37e 100644 --- a/ghc/InteractiveUI.hs +++ b/ghc/InteractiveUI.hs @@ -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" |