ghcjs / ghcjs

Haskell to JavaScript compiler, based on GHC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Changing the default BufferingMode in ghcjs from BlockBuffering Nothing to LineBuffering?

jmininger opened this issue · comments

import System.IO 
main = print =<< hGetBuffering stdout

produces
BlockBuffering Nothing .
This was the source of the problem in (the now closed) issue #772 . I don't see much of a reason why we should keep the default set at BlockBuffering Nothing instead of LineBuffering, and it even seems I get LineBuffering on older versions of ghcjs. Is there a reason that this has changed?