Skip to content

Commit

Permalink
Merge pull request #194 from tomjaguarpaw/ProcessHandle-haddock
Browse files Browse the repository at this point in the history
Move Haddock from ProcessHandle__ to ProcessHandle
  • Loading branch information
snoyberg authored Oct 1, 2020
2 parents aadf0f9 + 5027094 commit 17b8a15
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions System/Process/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,15 @@ data StdStream
-- ----------------------------------------------------------------------------
-- ProcessHandle type

data ProcessHandle__ = OpenHandle { phdlProcessHandle :: PHANDLE }
| OpenExtHandle { phdlProcessHandle :: PHANDLE
-- ^ the process
, phdlJobHandle :: PHANDLE
-- ^ the job containing the process and
-- its subprocesses
}
| ClosedHandle ExitCode

{- | A handle to a process, which can be used to wait for termination
of the process using 'System.Process.waitForProcess'.
Expand All @@ -200,14 +209,6 @@ data StdStream
completion. This requires two handles. A process job handle and
a events handle to monitor.
-}
data ProcessHandle__ = OpenHandle { phdlProcessHandle :: PHANDLE }
| OpenExtHandle { phdlProcessHandle :: PHANDLE
-- ^ the process
, phdlJobHandle :: PHANDLE
-- ^ the job containing the process and
-- its subprocesses
}
| ClosedHandle ExitCode
data ProcessHandle
= ProcessHandle { phandle :: !(MVar ProcessHandle__)
, mb_delegate_ctlc :: !Bool
Expand Down

0 comments on commit 17b8a15

Please sign in to comment.