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 Fix a typo in the `withOSHandle` documentation - - - - - 413bf6f1 by Wolfgang Jeltsch at 2026-01-16T14:50:58+02:00 Correct one of the notes on `withOSHandle` - - - - - 1 changed file: - libraries/ghc-internal/src/GHC/Internal/System/IO/OS.hs Changes: ===================================== libraries/ghc-internal/src/GHC/Internal/System/IO/OS.hs ===================================== @@ -69,7 +69,7 @@ import GHC.Internal.Foreign.C.Types (CInt) {-| Executes a user-provided action on an operating-system handle that underlies a Haskell handle. Before the user-provided action is run, user-defined - perparation based on the handle state that contains the operating-system + preparation based on the handle state that contains the operating-system handle is performed. While the user-provided action is executed, further operations on the Haskell handle are blocked to a degree that interference with this action is prevented. @@ -112,7 +112,7 @@ withOSHandle opName handleStateVar getOSHandle prepare handle act -} {- The order of actions in 'withOSHandle' is such that any exception from - 'getOSHandle' is thrown before the flushing of the Haskell-managed buffers. + 'getOSHandle' is thrown before the user-defined preparation is performed. -} {-| View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/9b010c8f8858366de032b8b954ab76c... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/9b010c8f8858366de032b8b954ab76c... You're receiving this email because of your account on gitlab.haskell.org.