The popenhs package

[Tags: gpl, library]

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]

Properties

Version1.0.0
Change logChangeLog
Dependenciesbase, directory, haskell98, unix [details]
LicenseGPL
AuthorJens-Ulrik Petersen
MaintainerJens-Ulrik Petersen <juhp@01.246.ne.jp>
CategorySystem
Home pagehttp://www.haskell.org/~petersen/haskell/popenhs/
UploadedSun Feb 17 04:59:25 UTC 2008 by GwernBranwen
DistributionsNixOS:1.0.0
Downloads222 total (10 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for popenhs-1.0.0

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.