#5773: main = forever (putStrLn =<< getLine) continuously saturates a CPU when
compiled
-------------------------------------+--------------------------------------
Reporter: lpsmith | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.4.1-rc1 | Keywords:
Os: Linux | Architecture: x86_64 (amd64)
Failure: Runtime performance bug | Testcase:
Blockedby: | Blocking:
Related: |
-------------------------------------+--------------------------------------
Comment(by lpsmith):
The problem appears to be in {{{getLine}}}; you can remove {{{forever}}}
and still consume 100% of a CPU (until you type something in and the
program exits of course.)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5773#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs