Windows build fails if getExecutablePath is imported
getExecutablePath on Windows uses PathFileExistsW on Windows which is provided by shlwapi. However shlwapi is not specified as an extra library. This means that any build that imports System.Environment.ExecutablePath on Windows will fail with a linker error:
$ ghc --make Main.hs
[1 of 1] Compiling Main ( Main.hs, Main.o )
Linking Main.exe ...
C:\Users\ghc\lib\base-4.12.0.0/libHSbase-4.12.0.0.a(ExecutablePath.o):fake:(.text+0xc81): undefined reference to `PathFileExistsW'
collect2.exe: error: ld returned 1 exit status
`gcc.exe' failed in phase `Linker'. (Exit code: 1)