haskell / win32

Haskell support for the Win32 API
http://hackage.haskell.org/package/Win32
Other
97 stars 62 forks source link

Exports are too unconstrained #174

Closed bgamari closed 3 years ago

bgamari commented 3 years ago

Currently many of Win32's modules have no export list, meaning that they often unintentionally export what were supposed to be internal functions (e.g. FFI imports). For instance, see System.Win32.Event, which exports c_WaitForSingleObject and many others. This ends up breaking haskeline.

As a rule in a library like this all modules should have an export list.