ghci history.

Judah Jacobson judah.jacobson at
Thu Aug 21 17:13:12 EDT 2008

2008/8/21 Venkat Ramanan <venkatr2004 at>:
> Hi all,
> I've just started learning haskell.
> I encountered a strange behaviour in ghci.
> 1. ghci doesn't seem to do pruning of duplicate expressions. If the same
> expression is entered twice, both of them are stored in the history instead
> of just one. Bash uses environmental variables (HISTCONTROL and HISTIGNORE )
> to modify this behavior.
> Is there a way to get the same behaviour in ghci?

I don't think there currently is; but you should feel free to submit a
feature request with the desired behavior at:

> 2. Does the history of ghci get stored somewhere in a file? That would be
> useful.

Currently (ghc-6.8) it does not store a history file, but it will in
version 6.10 (due out around late September, I believe).


More information about the Glasgow-haskell-users mailing list