sunlight-0.2.0.0: Test Cabalized package against multiple dependency versions

Safe HaskellNone

Test.Sunlight.Shell

Synopsis

Documentation

inDirectory :: FilePath -> IO a -> IO aSource

Runs an IO action within the given directory, and then returns to the original directory.

makeProcessSource

Arguments

:: FilePath

Run this command

-> [String]

Arguments

-> IO (Handle, Handle, ProcessHandle) 

Creates a process. Its stdin is closed. Returns handles to stdout and stderr, and the ProcessHandle.

teeSource

Arguments

:: FilePath

Run this command

-> [String]

Arguments

-> IO CmdResult 

Runs a command, sending standard output and standard error to the terminal, while also returning the standard output.

readToEOFSource

Arguments

:: Handle

Read from this handle

-> Handle

Send results to this handle

-> IO ByteString 

Reads from the given handle until EOF. Sends results to the given handle and also stores them in the returned ByteString.