
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? 2. Does the history of ghci get stored somewhere in a file? That would be useful. I'm using ghc-6.8.2 (ubuntu 8.04). Also, is there an updated ghc package (6.8.3) for ubuntu? If not, I'll try to install the binary. Thanks, Venkat.

2008/8/21 Venkat Ramanan
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

On Thu, Aug 21, 2008 at 5:13 PM, Judah Jacobson
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/
OK. I just submitted a feature request there. (#2531) Is this easy enough for a haskell-newbie to do? I can try to take a swipe at it. Thanks, Venkat.
participants (2)
-
Judah Jacobson
-
Venkat Ramanan