[Haskell-cafe] redirecting stdout

Chad Scherrer chad.scherrer at gmail.com
Thu Aug 30 15:38:47 EDT 2007


Is it possible to write a function

redirect :: Handle -> IO () -> IO ()

so that "redirect h action" is just like action, except that all the
output written to stdout now gets sent to h instead?

Thanks,
Chad


More information about the Haskell-Cafe mailing list