Control.Shell

Running Shell programs

data Shell a

data ExitReason

shell

shell_

exitString

Error handling and control flow

(|>)

capture

captureStdErr

capture2

stream

lift

try

orElse

exit

class Guard guard

guard

when

unless

Environment handling

withEnv

withoutEnv

lookupEnv

getEnv

cmdline

Running external commands

class MonadIO m

data Env

run

sudo

unsafeLiftIO

absPath

shellEnv

getShellEnv

joinResult

runSh

Working with directories

cpdir

pwd

ls

mkdir

rmdir

inDirectory

isDirectory

withHomeDirectory

inHomeDirectory

withAppDirectory

inAppDirectory

forEachFile

forEachFile_

forEachDirectory

forEachDirectory_

Working with files

isFile

rm

mv

cp

input

output

withFile

withBinaryFile

openFile

openBinaryFile

Working with temporary files and directories

data FileMode

withTempFile

withCustomTempFile

withTempDirectory

withCustomTempDirectory

inTempDirectory

inCustomTempDirectory

Working with handles

data Handle

data IOMode

hFlush

hClose

getStdIn

getStdOut

getStdErr

Text I/O

hPutStr

hPutStrLn

echo

echo_

ask

stdin

hGetLine

hGetContents

Terminal text formatting

data Color

color

background

highlight

bold

underline

ByteString I/O

hGetBytes

hPutBytes

hGetByteLine

hGetByteContents

Convenient re-exports