-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Enhanced version of process-extras -- -- Extra functionality for the Process library -- http://hackage.haskell.org/package/process. This is a drop-in -- replacement for -- http://hackage.haskell.org/package/process-extras, which adds -- support for creating processes from a CreateProcess, more access to -- the internals, and completes support for the String type. @package process-listlike @version 0.8 -- | Versions of the functions in module Read specialized for type -- ByteString. module System.Process.ListLike -- | Class of types which can be used as the input and outputs of the -- process functions. class (Integral (LengthType a), ListLikeIO a c) => ListLikePlus a c where type family LengthType a binary :: ListLikePlus a c => a -> [Handle] -> IO () lazy :: ListLikePlus a c => a -> Bool length' :: ListLikePlus a c => a -> LengthType a toChunks :: ListLikePlus a c => a -> [a] -- | A test version of readProcessC Pipes code here: -- http:hpaste.org/76631 readProcessInterleaved :: (ListLikePlus a c, Monoid b) => (ExitCode -> b) -> (a -> b) -> (a -> b) -> CreateProcess -> a -> IO b -- | Simultaneously read the output from all the handles, using the -- associated functions to add them to the Monoid b in the order they -- appear. Close each handle on EOF (even though they were open when we -- received them.) I can't think of anything else to do with a handle -- that has reached EOF. readInterleaved :: (ListLikePlus a c, Monoid b) => [(a -> b, Handle)] -> IO b -> IO b -- | A polymorphic implementation of readProcessWithExitCode with a -- few generalizations: -- --
    --
  1. The input and outputs can be any instance of -- ListLikePlus.
  2. --
  3. Allows you to modify the CreateProcess record before the -- process starts
  4. --
  5. Takes a CmdSpec, so you can launch either a -- RawCommand or a ShellCommand.
  6. --
readCreateProcessWithExitCode :: ListLikePlus a c => CreateProcess -> a -> IO (ExitCode, a, a) -- | A polymorphic implementation of readProcess with a few -- generalizations: -- --
    --
  1. The input and outputs can be any instance of -- ListLikePlus.
  2. --
  3. Allows you to modify the CreateProcess record before the -- process starts
  4. --
  5. Takes a CmdSpec, so you can launch either a -- RawCommand or a ShellCommand.
  6. --
readCreateProcess :: ListLikePlus a c => CreateProcess -> a -> IO a -- | A polymorphic implementation of readProcessWithExitCode in -- terms of readCreateProcessWithExitCode. readProcessWithExitCode :: ListLikePlus a c => FilePath -> [String] -> a -> IO (ExitCode, a, a) -- | Implementation of readProcess in terms of -- readCreateProcess. readProcess :: ListLikePlus a c => FilePath -> [String] -> a -> IO a data Output a Stdout :: a -> Output a Stderr :: a -> Output a Result :: ExitCode -> Output a Exception :: IOError -> Output a readProcessChunks :: ListLikePlus a c => CreateProcess -> a -> IO [Output a] instance Eq a => Eq (Output a) instance Show a => Show (Output a) instance NFData ExitCode instance Monoid ExitCode instance ListLikePlus Text Char instance ListLikePlus Text Char instance ListLikePlus ByteString Word8 instance ListLikePlus ByteString Word8 instance ListLikePlus String Char module System.Process.ByteString readProcess :: a ~ ByteString => FilePath -> [String] -> a -> IO a readProcessWithExitCode :: a ~ ByteString => FilePath -> [String] -> a -> IO (ExitCode, a, a) readCreateProcess :: a ~ ByteString => CreateProcess -> a -> IO a readCreateProcessWithExitCode :: a ~ ByteString => CreateProcess -> a -> IO (ExitCode, a, a) module System.Process.ByteString.Lazy readProcess :: a ~ ByteString => FilePath -> [String] -> a -> IO a readProcessWithExitCode :: a ~ ByteString => FilePath -> [String] -> a -> IO (ExitCode, a, a) readCreateProcess :: a ~ ByteString => CreateProcess -> a -> IO a readCreateProcessWithExitCode :: a ~ ByteString => CreateProcess -> a -> IO (ExitCode, a, a) module System.Process.String readProcess :: a ~ String => FilePath -> [String] -> a -> IO a readProcessWithExitCode :: a ~ String => FilePath -> [String] -> a -> IO (ExitCode, a, a) readCreateProcess :: a ~ String => CreateProcess -> a -> IO a readCreateProcessWithExitCode :: a ~ String => CreateProcess -> a -> IO (ExitCode, a, a) module System.Process.Text readProcess :: a ~ Text => FilePath -> [String] -> a -> IO a readProcessWithExitCode :: a ~ Text => FilePath -> [String] -> a -> IO (ExitCode, a, a) readCreateProcess :: a ~ Text => CreateProcess -> a -> IO a readCreateProcessWithExitCode :: a ~ Text => CreateProcess -> a -> IO (ExitCode, a, a) module System.Process.Text.Lazy readProcess :: a ~ Text => FilePath -> [String] -> a -> IO a readProcessWithExitCode :: a ~ Text => FilePath -> [String] -> a -> IO (ExitCode, a, a) readCreateProcess :: a ~ Text => CreateProcess -> a -> IO a readCreateProcessWithExitCode :: a ~ Text => CreateProcess -> a -> IO (ExitCode, a, a)