Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
hSilence :: [Handle] -> IO a -> IO a Source #
Run an IO action while preventing all output to the given handles.
capture :: IO a -> IO (String, a) Source #
Run an IO action while preventing and capturing all output to stdout. This will, as a side effect, create and delete a temp file in the temp directory or current directory if there is no temp directory.