[Haskell-cafe] Loop with the StateT monad

Brandon Allbery allbery.b at gmail.com
Sat Mar 18 22:34:30 UTC 2017

On Sat, Mar 18, 2017 at 6:27 PM, Ben Franksen <ben.franksen at online.de>

> System.IO.hSetBuffering is your friend

Except when it's your enemy:
https://github.com/commercialhaskell/stack/issues/2884 see also
http://tunes.org/~nef/logs/haskell/17.03.18 at 02:48:19 and following.

This conflation is stupid, prone to cause problems when multiple processes
are involved, and needs to go away. Trying to hide the difference between
buffering and tty mode from users just causes problems, because buffering
is process local but the tty mode is shared between all processes using the

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/322230b6/attachment.html>

More information about the Haskell-Cafe mailing list