--hsc2hs-options="-D_WIN32_WINNT=XXX" to cabal configure". I am using stack (on Windows 10) and not cabal. If anyone can advise a stack equivalent, I would be most grateful.
My attempts to apply "-D_WIN32_WINNT=0x0600" via various .cabal file fields do not seem to work, in that stack build behaves as if _WIN32_WINNT=0x0502 when it processes the .hsc file of the Win32-console package.