@hackage shell-pipe0.1

Pipe streams through external shell commands

Welcome to shell-haskell 1.0.1

This readme file describes the shell-haskell package. For newer versions and other information visit the shell-haskell homepage at:

http://www.electronconsulting.com/shell-haskell/

Description:

shell-haskell provides utilities to communicate with other process's via Haskell code. It can be used for something as simple as getting the output of another program or as complex as interacting with an interpreter.

License:

Public Domain.

Compilation:

This library requires ghc to compile (http://www.haskell.org/ghc/). Run make (gnu version) to compile the example programs. The library makes use of the haskell ffi specification along with a provided c stub for UNIX computers. If someone creates a windows stub, I'd be happy to see it and add it to this distribution.

Library:

This package currently has one function, Shell(launch).

launch :: String -> -- Program Name [String] -> -- Program Arguments (must have at least one argument) IO (Handle, --Returns handles for stdin, stdout, and stderr respectively Handle, Handle)

Example Programs:

This package comes with two example programs. Example1 lists the dotfiles of one's home directory. Example2 takes an argument (such as "33+33") and executes it using ghci as an interpretor.

Contact:

Please email me your thoughts/uses/comments/bug-reports/suggestions/etc. at: camior@gmail.com