summaryrefslogtreecommitdiff
path: root/compiler/hsSyn
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-08-26 16:36:05 +0100
committerSimon Marlow <marlowsd@gmail.com>2011-08-26 22:52:06 +0100
commit79d6745f66c678de5e104b2146d3dd3e2f006c3e (patch)
tree3df82bcb611af028542f639340d0cb5662fa87a9 /compiler/hsSyn
parent3b8d128701afe572969abb1dbd8af2a095b9b661 (diff)
downloadhaskell-79d6745f66c678de5e104b2146d3dd3e2f006c3e.tar.gz
Clean up the handling of the import and :module commands in GHCi
Previously we remembered the whole history of commands and replayed them on every :load/:reload, which lead to some non-linear performance characteristics (#5317). The handling of the implicit Prelude import and the implicit imports of recently loaded modules was also complicated and wrong in various obscure ways. The Prelude import works just like the implicit Prelude import in a Haskell module: it can be overriden with an explicit Prelude import. I have added a new ":show imports" command to show which imports are currently in force. Prelude> :show imports import Prelude -- implicit Prelude> import Prelude () Prelude> :show imports import Prelude () Prelude> map <interactive>:0:1: Not in scope: `map' Prelude> Full documentation in the User's Guide. There are various other little tweaks and improvements, such as when a module is imported with 'as', we now show the 'as' name in the prompt rather than the original name.
Diffstat (limited to 'compiler/hsSyn')
-rw-r--r--compiler/hsSyn/HsImpExp.lhs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/hsSyn/HsImpExp.lhs b/compiler/hsSyn/HsImpExp.lhs
index 74f97b24af..24ba87d301 100644
--- a/compiler/hsSyn/HsImpExp.lhs
+++ b/compiler/hsSyn/HsImpExp.lhs
@@ -111,7 +111,7 @@ data IE name
| IEGroup Int HsDocString -- ^ Doc section heading
| IEDoc HsDocString -- ^ Some documentation
| IEDocNamed String -- ^ Reference to named doc
- deriving (Data, Typeable)
+ deriving (Eq, Data, Typeable)
\end{code}
\begin{code}