[Haskell-cafe] how does ghci and hugs handle redirecting of stdin/stdout?