-
Notifications
You must be signed in to change notification settings - Fork 841
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
QuasiQuotes breaks building text-icu on Windows #4415
Comments
Related:
The latter mentions haskell/lsp#41 as a workaround. That said, you might be better trying haskell/text-icu#36 instead of hackage's I'm going to label as upstream, and remove the |
Thanks; I'll try the workarounds out and report back. |
I can confirm that the haskell/text-icu#36 PR (as yet unmerged) fixes the problem. This isn't a Stack problem then, but a problem with For others looking for the solution, I added the following to my extra-deps:
- git: https://github.com/LukaHorvat/text-icu.git # Use a patched version of text-icu from https://github.com/bos/text-icu/pull/36
commit: 9672dc725028b0b92e51ca6f69a78593978be78b |
General summary/comments
The
text-icu
package does not build on Windows when quasiquotes is turned on. I'm not sure what's causing this issue, whether it is a Stack issue or a GHC issue, but I thought I'd start here and maybe someone with more knowledge might know. :)This does appear to be a Windows-specific issue. I tried to reproduce on Ubuntu (via Windows Subsystem for Linux) and was unable to reproduce the issue there.
Steps to reproduce
OS: Windows 10 x64 1803
stack --resolver lts-12.19 new TextIcuRepro
stack exec -- pacman -Sy mingw64/mingw-w64-x86_64-icu
to install the necessary dependency for text-icu (as suggested here)text-icu
andraw-strings-qq
toTextIcuRepro-exe
's dependenciesMain.hs
to this:stack build
Expected
Successful build
Actual
If you remove the QuasiQuotes usage from
Main.hs
then it starts building:stack build
I also tried this using some quasiquotes from the
odbc
package instead ofraw-strings-qq
to make sure it wasn't that specific package's issue and the same behaviour can be observed.Gist of the verbose
stack build --verbose
output: https://gist.github.com/daniel-chambers/03942b0d40a21abb89e848f6adbc94abStack version
Method of installation
Official binary, downloaded from stackage.org or fpcomplete's package repository
The text was updated successfully, but these errors were encountered: