Safe Haskell | None |
---|---|
Language | Haskell98 |
- class ProcessMaker a where
- class ListLikeIO a c => ListLikeProcessIO a c where
- forceOutput :: a -> IO a
- readChunks :: Handle -> IO [a]
- class Monoid b => ProcessOutput a b | b -> a where
- pidf :: ProcessHandle -> b
- outf :: a -> b
- errf :: a -> b
- intf :: SomeException -> b
- codef :: ExitCode -> b
- readProcessWithExitCode :: ListLikeProcessIO a c => FilePath -> [String] -> a -> IO (ExitCode, a, a)
- readCreateProcessWithExitCode :: (ProcessMaker maker, ListLikeProcessIO a c) => maker -> a -> IO (ExitCode, a, a)
- readCreateProcess :: (ProcessMaker maker, ProcessOutput a b, ListLikeProcessIO a c) => maker -> a -> IO b
- readCreateProcessLazy :: (ProcessMaker maker, ProcessOutput a b, ListLikeProcessIO a c) => maker -> a -> IO b
Documentation
class ProcessMaker a where Source
ProcessMaker CreateProcess Source | This is the usual maker argument to |
ProcessMaker (CreateProcess, BufferMode, BufferMode) Source | Passing this to |
class ListLikeIO a c => ListLikeProcessIO a c where Source
forceOutput :: a -> IO a Source
readChunks :: Handle -> IO [a] Source
Read from a handle, returning a lazy list of the monoid a.
class Monoid b => ProcessOutput a b | b -> a where Source
pidf :: ProcessHandle -> b Source
intf :: SomeException -> b Source
ListLikeProcessIO a c => ProcessOutput a [Chunk a] Source | |
ListLikeProcessIO a c => ProcessOutput a (ExitCode, [Chunk a]) Source | |
ListLikeProcessIO a c => ProcessOutput a (ExitCode, a, a) Source |
readProcessWithExitCode Source
:: ListLikeProcessIO a c | |
=> FilePath | command to run |
-> [String] | any arguments |
-> a | standard input |
-> IO (ExitCode, a, a) | exitcode, stdout, stderr |
Like readProcessWithExitCode
, but with generalized input and output type.
readCreateProcessWithExitCode Source
:: (ProcessMaker maker, ListLikeProcessIO a c) | |
=> maker | command and arguments to run |
-> a | standard input |
-> IO (ExitCode, a, a) | exitcode, stdout, stderr |
readCreateProcess :: (ProcessMaker maker, ProcessOutput a b, ListLikeProcessIO a c) => maker -> a -> IO b Source
readCreateProcessLazy :: (ProcessMaker maker, ProcessOutput a b, ListLikeProcessIO a c) => maker -> a -> IO b Source
Like readCreateProcess, but the output is read lazily.