Readline read_history and write_history addition

Alexander Dunlap alexander.dunlap at gmail.com
Sat Jan 19 18:43:30 EST 2008


I don't see why not. I've attached a patch to add bindings for all six
functions.

Alex

On Jan 19, 2008 11:09 AM, Judah Jacobson <judah.jacobson at gmail.com> wrote:
>
> On Jan 18, 2008 11:10 PM, Alexander Dunlap <alexander.dunlap at gmail.com> wrote:
> > Hello all,
> >
> > I'd like to propose the addition of read_history and write_history
> > bindings to the readline library. I believe I've followed the
> > instructions on the Haskell wiki appropriately and I've set up a
> > ticket (with a patch) at
> > http://hackage.haskell.org/trac/ghc/ticket/2053.
> >
> > Essentially, the patch adds simple bindings so that Haskell programs
> > can use Readline's read_history and write_history functions. This will
> > be useful for the implementation of
> > http://hackage.haskell.org/trac/ghc/ticket/2050 (add persistent
> > history to GHCi) and potentially other applications.
> >
> > Thanks for your time and consideration.
> >
> > Alex
>
> That patch looks good to me.  While we're at it, can we also add the
> following related functions, which are used to control the maximum
> size of the history file?  (They're also provided by editline.)
>
> void             clear_history(void);
> void             stifle_history(int);
> int              unstifle_history(void);
> int              history_is_stifled(void);
>
> Thanks,
> -Judah
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: readline-2053-history.patch
Type: application/octet-stream
Size: 7849 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/libraries/attachments/20080119/2a76a4a4/readline-2053-history.obj


More information about the Libraries mailing list