hs-popen-0.1.0.0: Bindings to C pipe functions.
System.Process.Popen
Synopsis
popen :: String -> PopenMode -> IO CStream Source #
Creates a stream, analog of C's popen
pclose :: CStream -> IO (Either () CInt) Source #
Closes a stream. Returns `Left ()` if the status code is -1 and the status code otherwise.
fileno :: CStream -> IO CInt Source #
Gets the file descriptor number from the stream.
data CStream Source #
data PopenMode Source #
Constructors
Instances
Methods
(==) :: PopenMode -> PopenMode -> Bool #
(/=) :: PopenMode -> PopenMode -> Bool #
showsPrec :: Int -> PopenMode -> ShowS #
show :: PopenMode -> String #
showList :: [PopenMode] -> ShowS #
withCStream :: CStream -> (Ptr () -> IO a) -> IO a Source #