Wolfgang Jeltsch pushed to branch wip/jeltsch/obtaining-os-handles at Glasgow Haskell Compiler / GHC
Commits:
-
2edf7be6
by Wolfgang Jeltsch at 2026-01-16T14:50:27+02:00
-
413bf6f1
by Wolfgang Jeltsch at 2026-01-16T14:50:58+02:00
1 changed file:
Changes:
| ... | ... | @@ -69,7 +69,7 @@ import GHC.Internal.Foreign.C.Types (CInt) |
| 69 | 69 | {-|
|
| 70 | 70 | Executes a user-provided action on an operating-system handle that underlies
|
| 71 | 71 | a Haskell handle. Before the user-provided action is run, user-defined
|
| 72 | - perparation based on the handle state that contains the operating-system
|
|
| 72 | + preparation based on the handle state that contains the operating-system
|
|
| 73 | 73 | handle is performed. While the user-provided action is executed, further
|
| 74 | 74 | operations on the Haskell handle are blocked to a degree that interference
|
| 75 | 75 | with this action is prevented.
|
| ... | ... | @@ -112,7 +112,7 @@ withOSHandle opName handleStateVar getOSHandle prepare handle act |
| 112 | 112 | -}
|
| 113 | 113 | {-
|
| 114 | 114 | The order of actions in 'withOSHandle' is such that any exception from
|
| 115 | - 'getOSHandle' is thrown before the flushing of the Haskell-managed buffers.
|
|
| 115 | + 'getOSHandle' is thrown before the user-defined preparation is performed.
|
|
| 116 | 116 | -}
|
| 117 | 117 | |
| 118 | 118 | {-|
|