[Haskell-cafe] Interactive chatbot

Gregory Crosswhite gcross at phys.washington.edu
Wed Nov 4 17:25:44 EST 2009

The library at


might solve your problem.


On Nov 4, 2009, at 2:21 PM, Torsten Otto wrote:

> Hi!
> 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). I  
> didn't find that terribly problematic, but of course it is a bit of  
> a show stopper from their point of view.
> The input is then used to generate a reply in purely functional  
> code, and the reply sent to the command line via putStr. Is there a  
> more clever way to interact with the user that would allow editing  
> ones text before sending it to the bot?
> I guess we could try with a website, but don't know off hand how to  
> do that, either, although I've seen beautiful webservers made in  
> Haskell...
> Regards,
> Torsten Otto
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list