This is a fairly minor thing, but it's something that tripped me up recently. I was looking at the Haddocks for System.Win32.DLL, which defines the following functions:
Most of these functions work over HMODULE with two exceptions: loadLibrary and loadLibraryEx. This confused me at first, as I didn't realize that HINSTANCE and HMODULE are both type synonyms for the same thing (Ptr ()). I even looked the official Win32 documentation for LoadLibrary and LoadLibraryEx, both of which use HMODULE rather than HINSTANCE.
Could the Haddocks in the Haskell Win32 library also use HMODULE instead of HINSTANCE? This would make all of the type synonym uses in System.Win32.DLL consistent, and it would match how the presentation in the official Win32 documentation as well.
This is a fairly minor thing, but it's something that tripped me up recently. I was looking at the Haddocks for
System.Win32.DLL
, which defines the following functions:Most of these functions work over
HMODULE
with two exceptions:loadLibrary
andloadLibraryEx
. This confused me at first, as I didn't realize thatHINSTANCE
andHMODULE
are both type synonyms for the same thing (Ptr ()
). I even looked the official Win32 documentation forLoadLibrary
andLoadLibraryEx
, both of which useHMODULE
rather thanHINSTANCE
.Could the Haddocks in the Haskell
Win32
library also useHMODULE
instead ofHINSTANCE
? This would make all of the type synonym uses inSystem.Win32.DLL
consistent, and it would match how the presentation in the official Win32 documentation as well.