[Haskell-cafe] Haskeline and asynchronous messages

Evan Laforge qdunkan at gmail.com
Tue Jan 6 12:14:40 UTC 2015

I've done something like this by using
Haskeline.MonadException.handle, and then using throwTo to interrupt
Haskeline.getInputLine.  Unfortunately it wipes out the contents of
the input, so it wouldn't be very good for you, unless you can have
haskeline save it.

I too would like a way to interrupt and resume getInputLine without
messing up its state.

On Tue, Jan 6, 2015 at 1:57 PM, Rob Leslie <rob at mars.org> wrote:
> Greetings,
> Does anyone have a suggestion on using Haskeline in an environment where another thread may be writing messages to the terminal -- is it possible to somehow print incoming messages above the input line without disturbing the input line?
> Thanks for any advice.
> --
> Rob Leslie
> rob at mars.org
> _______________________________________________
> 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