process-conduit: Conduit for process

[ bsd3, conduit, deprecated, library, system ] [ Propose Tags ]
Deprecated. in favor of conduit-extra

Conduit for process

[Skip to Readme]
Versions [faq] 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.2.*), mtl (==2.0.*), process (==1.1.*), process-conduit, shakespeare-text (==0.10.*), template-haskell (>=2.4 && <2.8), text (==0.11.*) [details]
License BSD-3-Clause
Copyright (c) 2011-2012, Hideyuki Tanaka
Author Hideyuki Tanaka
Maintainer Hideyuki Tanaka <>
Category System, Conduit
Home page
Source repo head: git clone git://
Uploaded by HideyukiTanaka at Mon Feb 6 10:34:08 UTC 2012
Distributions Debian:, NixOS:
Executables process-qq, process-conduit
Downloads 16049 total (184 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]





Build examples


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees

Readme for process-conduit-0.0.0

[back to package description]

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 Source ByteString m ByteString and Conduit 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 qualified Data.Conduit as C
import qualified Data.Conduit.Binary as CB
import Data.Conduit.Process
import System.IO

main :: IO ()
main = C.runResourceT $ do
  sourceCmd "ls" C.$= conduitCmd "sort" C.$$ 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|] $$ sinkHandle stdout
main = do
  [url] <- getArgs
  print =<< [cmd|curl #{url}|]