extra-0.3: Extra functions I use.

Safe HaskellNone

System.IO.Extra

Description

More advanced temporary file manipulation functions can be found in the exceptions package.

Synopsis

Documentation

module System.IO

captureOutput :: IO a -> IO (String, a)Source

Capture the stdout and stderr of a computation.

 captureOutput (print 1) == return ("1\n",())