ghci history.

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


2008/8/21 Venkat Ramanan <venkatr2004 at gmail.com>:
> 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:
http://hackage.haskell.org/trac/ghc/

> 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).

Best,
-Judah


More information about the Glasgow-haskell-users mailing list