summaryrefslogtreecommitdiff
path: root/src/System/Process/Concurrent.hs
blob: 346ce2e0ae92bbf407b108c2dc81fff20d3723d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- | 
-- Copyright: 2015 Joey Hess <id@joeyh.name>
-- License: BSD-2-clause
-- 
-- The functions exported by this module are intended to be drop-in
-- replacements for those from System.Process, when converting a whole
-- program to use System.Console.Concurrent.

module System.Process.Concurrent where

import System.Console.Concurrent
import System.Process hiding (createProcess, waitForProcess)
import System.IO
import System.Exit

-- | Calls `createProcessConcurrent`
createProcess :: CreateProcess -> IO (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle)
createProcess = createProcessConcurrent

-- | Calls `waitForProcessConcurrent`
waitForProcess :: ProcessHandle -> IO ExitCode
waitForProcess = waitForProcessConcurrent