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]




Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS] 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 2008-02-17T04:59:25Z
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1155 total (5 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 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.