On Sun, Sep 14, 2008 at 10:24 AM, Marco Túlio Gontijo e Silva <[EMAIL PROTECTED]> wrote: < > When I run this code, I get > > fork > > and the result of ls only after I press a key. Does getChar blocks the > other threads? >
I think this behavior is caused by (or at least related to) the following GHC bug: http://hackage.haskell.org/trac/ghc/ticket/2363 That bug has been fixed for the 6.10 release; my testing indicated that your program behaves correctly in that version. See the above bug report for some suggestions on how to work around the 6.8 getChar blocking. Hope that helps, -Judah _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe