Shh: Simple Shell Scripting from Haskell

Shh is a library that allows for shell-like programming in Haskell. It can be used in scripts and from GHCi, making it possible to use GHCi as a shell. The primary purpose of Shh is to replace shell scripts, and it provides many functions to mimic the shell environment. Porting shell scripts to Shh should be relatively easy, and Shh may even offer more robustness than the original scripts. It also supports redirecting stdout and stderr, piping output between processes, using Haskell’s concurrency primitives, capturing process output, and more. While Shh doesn’t have built-in globbing or string interpolation, external libraries can be used for those purposes. Shh is thread-safe and offers proper exceptions when a process fails. There is also a tool called “shh” that acts as a wrapper around launching GHCi and automatically loads the environment. Overall, Shh provides an extensive set of features for shell-like programming in Haskell.

https://github.com/luke-clifton/shh

To top