Venkat Ramanan | 21 Aug 22:16

ghci history.

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.
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users <at> haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Judah Jacobson | 21 Aug 23:13

Re: ghci history.

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
Venkat Ramanan | 22 Aug 00:26

Re: ghci history.

On Thu, Aug 21, 2008 at 5:13 PM, Judah Jacobson <judah.jacobson <at> gmail.com> wrote:
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.
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users <at> haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Gmane