yi-0.6.2.3: The Haskell-Scriptable EditorSource codeContentsIndex
Yi.Process
Synopsis
popen :: FilePath -> [String] -> Maybe String -> IO (String, String, ExitCode)
runProgCommand :: String -> [String] -> IO (String, String, ExitCode)
runShellCommand :: String -> IO (String, String, ExitCode)
shellFileName :: IO String
createSubprocess :: FilePath -> [String] -> BufferRef -> IO SubprocessInfo
readAvailable :: Handle -> IO String
data SubprocessInfo = SubprocessInfo {
procCmd :: FilePath
procArgs :: [String]
procHandle :: ProcessHandle
hIn :: Handle
hOut :: Handle
hErr :: Handle
bufRef :: BufferRef
separateStdErr :: Bool
}
type SubprocessId = Integer
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.
runShellCommand :: String -> IO (String, String, ExitCode)Source
shellFileName :: IO StringSource
Run a command using the system shell, returning stdout, stderr and exit code
createSubprocess :: FilePath -> [String] -> BufferRef -> IO SubprocessInfoSource
readAvailable :: Handle -> IO StringSource
data SubprocessInfo Source
Constructors
SubprocessInfo
procCmd :: FilePath
procArgs :: [String]
procHandle :: ProcessHandle
hIn :: Handle
hOut :: Handle
hErr :: Handle
bufRef :: BufferRef
separateStdErr :: Bool
type SubprocessId = IntegerSource
Produced by Haddock version 2.6.1