HsShellScript is a Haskell library that allows you to solve typical shell script problems with Haskell. So functions for controlling processes and accessing system information etc. Looks very nice, but unfortunately cannot be compiled on OS X due to missing mntent.h.