haskeline without terminfo

Judah Jacobson judah.jacobson at gmail.com
Wed Jun 2 19:06:15 EDT 2010

On Wed, Jun 2, 2010 at 6:04 AM, Christian Maeder
<Christian.Maeder at dfki.de> wrote:
> Hi,
> usually I install haskeline without terminfo, because I don't miss any
> functionality and try to avoid installing unused packages.
> I do so either manually (and global) via Setup or by:
>  cabal install -f -terminfo haskeline
> [...]
> 1. What do I gain when I use haskeline with terminfo?

Suppose that at the prompt, you enter more characters than the width
of the terminal.  With terminfo, the line will wrap and you can see
all the text at once as you edit it; you can also move up to the first
part of the line using the left arrow, ctrl-a, etc.

Without terminfo, you can still edit long inputs, but the interface
will stay on one line.  If you move back and forth through a long
string, at each point it'll only display a subsequence of the text --
as much text as fits in the terminal width.

Hope that helps; I'll make a note to improve the documentation in the
.cabal file.

More information about the cabal-devel mailing list