The process-conduit package

[Tags: bsd3, deprecated, library]

Deprecated in favor of conduit-extra

This package is deprecated. Please use Data.Conduit.Process from conduit-extra instead. The original code is maintained in Data.Conduit.ProcessOld for those wishing to use the older API.

[Skip to ReadMe]


Versions0.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,,,,,,,,,,,,
Change logNone available
Dependenciesbase (==4.*), bytestring (>=0.9), conduit (>=1.1), control-monad-loop (==0.1.*), mtl (>=2.0), process (>=1.0), resourcet (>=1.1), shakespeare, shakespeare-text (>=1.0), template-haskell (>=2.4), text (>=0.11) [details]
Copyright(c) 2011-2013, Hideyuki Tanaka
AuthorHideyuki Tanaka
MaintainerMichael Snoyman
CategorySystem, Conduit
Home page
Source repositoryhead: git clone git://
UploadedThu Jul 17 15:53:31 UTC 2014 by MichaelSnoyman
DistributionsDebian:, NixOS:
Downloads10764 total (137 in last 30 days)
0 []
StatusDocs available [build log]
Successful builds reported [all 1 reports]




Maintainers' corner

For package maintainers and hackage trustees

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.


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
{-# LANGUAGE QuasiQuotes #-}
import System.Process.QQ

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