[Haskell-cafe] How to Hijack stdin,err,out, thread safely?