-
Notifications
You must be signed in to change notification settings - Fork 30
Switch to using Win32
for obtaining Windows handles
#185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to using Win32
for obtaining Windows handles
#185
Conversation
@jeltsch, thanks for your pull request but
If Copying-in @Bodigrim for information, as his comment was the origin for dropping |
I see that @jeltsch, is |
I have an alternative pull request (#186) with the same ultimate objective, so closing this one. |
There is a table about the stability of I’m happy to answer more questions in case something is unclear. |
…rom GHC 9.10” This reverts commit 40f9124.
See #187 for an alternative solution, which avoids the |
There is an effort to move some GHC-specific modules out of
base
. A candidate for such moving isGHC.IO.Handle.Types
. This module is often used for obtaining operating-system handles (file descriptors, Windows handles) from Haskell handles. Such a use is also present in theansi-terminal
package: in the implementation of the internal operationSystem.Console.ANSI.Windows.Win32.Types.withHandleToHANDLE
. However, this implementation was copied into theWin32
package already for its version 2.5.1, so that nowansi-terminal
does not need its own implementation of Windows handle acquisition anymore.This pull request removes the implementation of
withHandleToHANDLE
fromSystem.Console.ANSI.Windows.Win32.Types
and lets this module re-exportwithHandleToHANDLE
fromWin32
instead.I suggest to check, as a follow-up project, whether
System.Console.ANSI.Windows.Win32.Types
is needed at all these days, given that the moduleSystem.Win32.Types
fromWin32
seems to provide pretty much the same things.