The process-conduit package

[Tags:bsd3, deprecated, library, test]
Deprecated. in favor of conduit-extra

Conduits for processes. For more details:

[Skip to Readme]


Versions 0.0.0, 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.1.0, 0.4.0, 0.4.1, 0.5.0,,,,,,,,,,,,
Dependencies base (==4.*), bytestring (>=0.9), conduit (==0.5.*), control-monad-loop (==0.1.*), mtl (>=2.0), process (>=1.0), shakespeare-text (>=1.0), template-haskell (>=2.4 && <2.9), text (>=0.11) [details]
License BSD3
Copyright (c) 2011-2012, Hideyuki Tanaka
Author Hideyuki Tanaka
Maintainer Hideyuki Tanaka <>
Category System, Conduit
Home page
Source repository head: git clone git://
Uploaded Tue Jan 8 04:53:26 UTC 2013 by HideyukiTanaka
Distributions Debian:, NixOS:
Downloads 11861 total (18 in the last 30 days)
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for process-conduit

Readme for process-conduit-

process-conduit: Conduit for processes


This package provides conduit for processes. Also this provides quasi-quoters for process using it.


$ cabal update
$ cabal install process-conduit


Haddock documents are here:

Quasi Quoters

process-conduit has three quasi-quoters, cmd, scmd and ccmd.

The result type of cmd is Lazy ByteString, but execution will perform strictly.

The result type of scmd and ccmd are GSource m ByteString and GConduit ByteString m ByteString respectively.

If a command is failed, an exception is thrown.

Commands are executed in run-time, not compile-time.


  • Create a Source and a Conduit of process
import Data.Conduit
import qualified Data.Conduit.Binary as CB
import Data.Conduit.Process
import System.IO

main :: IO ()
main = runResourceT $ do
  sourceCmd "ls" $= conduitCmd "sort" $$ CB.sinkHandle stdout
  • Invoke a process simply
{-# LANGUAGE QuasiQuotes #-}
import System.Process.QQ

main = print =<< [cmd|ls|]
  • Conduit Quasi-Quoters
main :: IO ()
main = runResourceT $ do
  [scmd|ls|] $= [ccmd|sort|] $$ CB.sinkHandle stdout
main = do
  [url] <- getArgs
  print =<< [cmd|curl #{url}|]