Control.Shell

Running Shell programs

data Shell a

data ExitReason

shell

shell_

exitString

Error handling and control flow

(|>)

try

orElse

exit

class Guard guard

guard

when

unless

Environment handling

setEnv

getEnv

withEnv

lookupEnv

cmdline

Running commands

class MonadIO m

run

run_

genericRun

runInteractive

sudo

Working with directories

cd

cpdir

pwd

ls

mkdir

rmdir

inDirectory

isDirectory

withHomeDirectory

inHomeDirectory

withAppDirectory

inAppDirectory

forEachFile

forEachFile_

forEachDirectory

forEachDirectory_

Working with files

isFile

rm

mv

cp

input

output

Working with temporary files and directories

withTempFile

withCustomTempFile

withTempDirectory

withCustomTempDirectory

inTempDirectory

Working with handles

data Handle

data IOMode

stdin

stdout

stderr

hFlush

hClose

withFile

withBinaryFile

openFile

openBinaryFile

Text I/O

hPutStr

hPutStrLn

echo

ask

hGetLine

hGetContents

ByteString I/O

hGetBytes

hPutBytes

hGetByteLine

hGetByteContents

Convenient re-exports