[Haskell-cafe] Arrow key functionality for REPL written in Haskell

Travis Cardwell travis.cardwell at extellisys.com
Sun Sep 28 08:43:41 UTC 2014


On 2014年09月28日 16:42, PENG, BO YA wrote:
> I'm trying to implement the arrow key functionality for a systemf REPL to
> recall previously entered lines. I think I should save the previous lines
> in a list and then traverse through the list when an arrow key is pressed,
> but I'm no sure how to detect an arrow key and implement this functionality.
> Can anyone give a brief description about the implementation or point me to
> some other resources?
> Thanks!

Perhaps readline would work for you?

http://hackage.haskell.org/package/readline

Cheers,

Travis


More information about the Haskell-Cafe mailing list