[Haskell-cafe] Interactive chatbot
thomas.dubuisson at gmail.com
Wed Nov 4 17:27:59 EST 2009
On Wed, Nov 4, 2009 at 2:21 PM, Torsten Otto <t-otto-news at gmx.de> wrote:
> My students have the task to program an interactive chatbot. We have run
> into a problem that I can't solve either:
> When we read the user's input through
>> t <- getLine
> it is not possible to delete typos before hitting enter and thereby sending
> the input off to the system (at least in OS X, bash).
Why reinvent the shell? Is the program not setup in such a way as to
make the ShellAC package a useful solution?
I see someone already chimed in with readline. You might want to look
at haskeline too, if you go that path (both are a step lower than
ShellAC wrt abstraction).
More information about the Haskell-Cafe