A module for shell-like / perl-like programming in Haskell.
Shelly's focus is entirely on ease of use for those coming from shell scripting.
However, it also tries to use modern libraries and techniques to keep things efficient.

The functionality provided by
this module is (unlike standard Haskell filesystem functionality)
thread-safe: each ShIO maintains its own environment and its own working
directory.

I highly recommend putting the following at the top of your program,
otherwise you will likely need either type annotations or type conversions

Entering ShIO.

Enter a ShIO from (Monad)IO. The environment and working directories are
inherited from the current process-wide values. Any subsequent changes in
processwide working directory or environment are not reflected in the
running ShIO.

variadic argument version of run.
The syntax is more convenient, but more importantly it also allows the use of a FilePath as a command argument.
So an argument can be a Text or a FilePath.
a FilePath is converted to Text with toTextIgnore.
You will need to add the following to your module:

Environment directory

Change current working directory of ShIO. This does *not* change the
working directory of the process we are running it. Instead, ShIO keeps
track of its own working directory and builds absolute paths internally
instead of passing down relative paths. This may have performance
repercussions if you are doing hundreds of thousands of filesystem
operations. You will want to handle these issues differently in those cases.

Get a full path to an executable on PATH, if exists. FIXME does not
respect setenv'd environment and uses findExecutable which uses the PATH inherited from the process
environment.
FIXME: findExecutable does not maintain a hash of existing commands and does a ton of file stats