streaming-process: Streaming support for running system process

[ data, library, mit, streaming ] [ Propose Tags ]

Stream data in and out of external commands. Configuration options are available to choose which inputs and outputs to use.


[Skip to Readme]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Change log ChangeLog.md
Dependencies base (>=4 && <5), bytestring, directory (>=1.2 && <1.4), exceptions (>=0.6 && <0.11), lifted-async (>=0.9.1 && <0.11), monad-control (>=1 && <2), process (>=1.2.0.0 && <1.7), streaming (>=0.1.4.0 && <0.3), streaming-bytestring (>=0.1.4.5 && <0.2), streaming-commons (>=0.1.16 && <0.3), streaming-concurrency (>=0.3 && <0.4), streaming-with (>=0.2 && <0.3), transformers, transformers-base [details]
License MIT
Copyright Ivan Lazar Miljenovic
Author Ivan Lazar Miljenovic
Maintainer Ivan.Miljenovic@gmail.com
Category Data, Streaming
Source repo head: git clone https://github.com/ivan-m/streaming-process.git
Uploaded by IvanMiljenovic at 2018-05-23T13:53:51Z
Distributions NixOS:0.1.0.0
Downloads 788 total (1 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-05-23 [all 1 reports]

Readme for streaming-process-0.1.0.0

[back to package description]

streaming-process

Hackage Build Status

Run a process, streaming data in or out.

A lot of configuration options are available to fine-tune which inputs and outputs are streamed.

This uses streaming-with to handle resource management, and streaming-concurrency for handling both stdout and stderr together.

As such, code is typically run in a continuation-passing-style. You may wish to use the Streaming.Process.Lifted module if you have many of these nested.

Exceptions

The functions in this library will all throw ProcessExitedUnsuccessfully if the process/command itself fails.

WARNING

If using this module, you will need to have:

ghc-options -threaded

in the executable section of your .cabal file, otherwise your code will likely hang!