shqq: Embed shell commands with interpolated Haskell variables, and capture output

[ bsd3, library, system ] [ Propose Tags ] [ Report a vulnerability ]

This library provides a quasiquoter for executing shell commands, somewhat similar to Perl's backtick operator. Shell commands are IO actions, and they capture the command's standard output as a String result.

You can use Haskell variables in a shell command. A string representation of the contents will be interpolated. The shell will see each interpolated variable as a single token without interpreting special characters, unless you choose otherwise.

Note: The shell escaping is not correct for the Windows shell. This library should fail to build on Windows, as well.

Examples of using this library are included in examples/.


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1
Dependencies base (>=3 && <5), parsec (>=3.1), posix-escape (>=0.1), process (>=1.1), template-haskell (>=2.3), unix [details]
License BSD-3-Clause
Author Keegan McAllister <mcallister.keegan@gmail.com>
Maintainer Keegan McAllister <mcallister.keegan@gmail.com>
Category System
Source repo head: git clone git://github.com/kmcallister/shqq
Uploaded by KeeganMcAllister at 2011-10-10T19:52:28Z
Distributions NixOS:0.1
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1209 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for shqq-0.1

[back to package description]
This library provides a quasiquoter for executing shell commands in Haskell,
somewhat similar to Perl's backtick operator.  Shell commands are IO actions,
and they capture the command's standard output as a String result.  You can
also interpolate Haskell variables into a command.

Documentation is hosted at http://hackage.haskell.org/package/shqq

To build the documentation yourself, run

  $ cabal configure && cabal haddock --hyperlink-source

This will produce HTML documentation under dist/doc/html/shqq