yi-0.7.2: The Haskell-Scriptable Editor

Safe HaskellNone

Yi.Process

Synopsis

Documentation

popen :: FilePath -> [String] -> Maybe String -> IO (String, String, ExitCode)Source

A Posix.popen compatibility mapping. Based on PosixCompat, originally written by Derek Elkins for lambdabot TODO: this will probably be called readProcess in the new process package (2.0)

runProgCommand :: String -> [String] -> IO (String, String, ExitCode)Source

Run a command. This looks up a program name in $PATH, but then calls it directly with the argument.

shellFileName :: IO StringSource

Run a command using the system shell, returning stdout, stderr and exit code

data SubprocessInfo Source

Constructors

SubprocessInfo 

Fields

procCmd :: FilePath
 
procArgs :: [String]
 
procHandle :: ProcessHandle
 
hIn :: Handle
 
hOut :: Handle
 
hErr :: Handle
 
bufRef :: BufferRef
 
separateStdErr :: Bool