popenhs: popenhs is a popen-like library for Haskell.

[ library, system ] [ Propose Tags ]

It provides a convenient way of sending string input to a subprocess and reading output from it lazily. It requires the Posix module and has been tested under ghc5 so far.

[Skip to Readme]
Versions 1.0.0
Change log ChangeLog
Dependencies base, directory, haskell98, unix [details]
License LicenseRef-GPL
Author Jens-Ulrik Petersen
Maintainer Jens-Ulrik Petersen <juhp@01.246.ne.jp>
Category System
Home page http://www.haskell.org/~petersen/haskell/popenhs/
Uploaded by GwernBranwen at Sun Feb 17 04:59:25 UTC 2008
Distributions NixOS:1.0.0
Downloads 511 total (7 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for popenhs-1.0.0

[back to package description]
popenhs is a small Haskell library that provides a
convenient way of sending string input to a subprocess and
reading output lazily.  The code is based on runProcess from
the hslibs posix library.  (It is also an example of how to
use automake in haskell packages.)

It provides two functions popen and popenEnvDir.

* popen gives lazy output and error streams from a
subprocess command, and optionally can direct input from a
string to the process.

* popenEnvDir in addition lets specify environment and
directory in which to run the subprocess command.

Building should be straightforward.  See the generic INSTALL
file and "./configure --help" for more details.

* run "./configure"

* then "make"

* and "make install"

For applications using popenhs, a helper program
"popenhs-config" is provided that can be used in Makefile's
for example to get the correct compile and link options.
"popenhs-config --help" gives more information.