[Haskell-cafe] Loop with the StateT monad

Brandon Allbery allbery.b at gmail.com
Sun Mar 19 00:27:29 UTC 2017


On Sat, Mar 18, 2017 at 7:57 PM, Ben Franksen <ben.franksen at online.de>
wrote:

> As long as you leave control over these things to the terminal, yes. But
> what if your program wants to control that itself? E.g. react to
> keystrokes, rather than edited lines, as the OP seemed to want?
>

https://downloads.haskell.org/~ghc/8.0.2/docs/html/libraries/unix-2.7.2.1/System-Posix-Terminal.html

Admittedly some wrappers would be nice... but with care, lest you reproduce
the same issues stack is having.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170318/286043a7/attachment.html>


More information about the Haskell-Cafe mailing list