Sos.Job
data Job Source #
A Job is a list of shell commands to run, along with the FileEvent that triggered the job.
Job
FileEvent
Constructors
Fields
Event that triggered this job.
The list of shell commands to run.
Non-stanard Eq instance: Job equality compares only the shell commands it's associated with.
Defined in Sos.Job
Methods
(==) :: Job -> Job -> Bool #
(/=) :: Job -> Job -> Bool #
type ShellCommand = String Source #
runJob :: Job -> IO () Source #
Run a Job's list of shell commands sequentially. If a command returns ExitFailure, or an exception is thrown, propagate the exception.