-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error when building the executable with GHC 8.8.4 on Windows #9
Comments
Also saw this, ghc v8.8.4 on windows
|
Hi anynews regarding this issue? We are still experiencing the same issue blocking for example installation of haskell-language-server |
As a temporary workaround, there is a fork without the troublesome troubleshoot executable on https://github.com/f-f/haskell-with-utf8 Go there, clone the repository and then add its folder as an extra package in your stack.yaml file. |
maybe an easier fix is to add this under
no need to clone the repository yourself |
Problem: Compilation of the executable on Windows fails with 'Module `GHC.IO.Encoding.Iconv' does not export `localeEncodingName'` Solution: Check if we are on Windows, and don't import such module or use `localeEncodingName` if it's the case.
…-on-windows [#9] Fix compilation of executable on Windows
Hopefully, this is fixed now! Sorry for the delay, everyone 😞. |
I have uploaded v1.0.2.2 to Hackage and it includes this fix. |
Thank you @kirelagin! |
Error from here
As you can see from the log above the library compiles fine, but the executable fails to (even though the
base
version in the build is supposed to contain the module). I cannot find a straightforward way to exclude the executable from the compilation, so I was wondering if it would be worth splitting it out in a separate package?The text was updated successfully, but these errors were encountered: