I just downloaded and installed Haskell Platform 8.2.1 on my computer running Windows 10. The installation succeeded, but when I start WinGHCi from the Start menu, WinGHCi pops up a dialog box showing the error message:
CreateGHCiProcess failed with failed with error2: The system cannot find the file specified.
If I press OK, the WinGHCi window disappears.
I tried to launch GHCi from the command prompt by typing C:>ghci and got the message
GHCi, version 8.2.1: http://www.haskell.org/ghc/ :? for help
Access violation in generated code when reading 00007ffd2c957275
I also uninstall/reinstall Haskell Platform a few times, but the problem persists.
Anyone knows how to fix this problem?
By the way, I installed Haskell Platform 8.0.2 a few months ago, but I uninstalled it immediately and waited for the new version because it clashed with the Windows 10 Creator Update. Can this cause some conflicts somehow?
This is often a problem due to usage of
HitmanProantivirus, which injects itself into other processes in disruptive ways. See, e.g. http://haskell.1045720.n5.nabble.com/Getting-segmentation-fault-on-stack-cabal-any-command-including-stack-install-ghc-On-windows-td5866282.html for more details.