Haskell-Stack: Access violation error during build

此生再无相见时 提交于 2019-12-05 05:12:56

I managed to find a temporary solution for anybody who is having the same issue.

I downgraded cabal to version 1.24.0.2 and changed the resolver to using GHC version 8.0.1 (resolver: ghc-8.0.1).

After then running stack solver I'm now able to build.

The issue #3765 on the stack tracker has some workarounds for this, in addition to Michael's answer.

The best solution, it seems, is to unset __COMPAT_LAYER, which when set to INSTALLER can reproduce the bug.

C:\>set __COMPAT_LAYER=

The cause might be a bug in some versions of GHC, which is catching exceptions it ought to propagate to the user. If this is the case, there is an underlying problem, and this bug is hiding it.

Do please add a comment on the aforementioned issue, as it will help the maintainers track the prevalence of this problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!