aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 0ad027df141bdfe81693c40819792c845d22eb17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# sh

Conveniently call external processes from Haskell.

## Description

This library makes it convenient to run external processes in your Haskell program.

It offers a single quasi quoter `sh` to run external processes.

The program's exit code, standard output and standard error can be obtained by parameterizing its output type to ``ExitCode``, `(ExitCode, String)`, `(ExitCode, String, String)`, `String`, `(String, String)`, respectively. Instead of `String`, you may chose `ByteString` or `Text`, in both lazy and strict variants, as outputs.

Arguments passed to `sh` are automatically passed to the process in a type-safe way, and appropriately quoted.