Skip to content

Bump Win32 version for GHC in 8.10.x series

Summary

It is currently not possible on Windows for a cabal project to simultaneously depend on ghc package and Win32 >= 2.6.2.0 simultaneously. This is because ghc-8.10.x series ships with Win32-2.6.1.0 and ghc package is prebuilt against that version. This not only affects single cabal packages that do this, but also can be a problem for multiprojects where independent subprojects clash with these constraints.

The only work around is for multiprojects to be split and cases where a single project actually need both are unsolvable.

Steps to reproduce

Build the following project in Windows with ghc-8.10.4. https://github.com/newhoggy/Win32-test/blob/main/Win32-test.cabal

Expected behavior

What do you expect the reproducer described above to do?

Ideally I should be able to use any Win32 version compatible with the given version of GHC, but short of that having the Win32 version bumped for the next ghc-8.10.x release will go a long way to alleviate pain points.

Environment

  • GHC version used: ghc-8.10.4

Optional:

  • Operating System: Windows
  • System Architecture: Intel
Edited by John Ky
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information