I've installed Haskell Platform version 8.2.2 (Full, 64 bit) on Windows 10. ghc works, and also WinGHCi. There are several problems: -- Running ghci in cygwin gives this error:
GHCi, version 8.2.2: http://www.haskell.org/ghc/ :? for help : user specified .o/.so/.DLL could not be loaded (addDLL: pthread or dependencies not loaded. (Win32 error 193)) Whilst trying to load: (dynamic) pthread Additional directories searched: (none)
-- Running ghci in PowerShell just causes PowerShell to freeze -- Installing packages with cabal produces a similar error message -- ghc-pkg check produces a large number of warnings, including many that refer to ghc-8.0.1, which is the most recent version of ghc that works on my computer GHC_PACKAGE_PATH is not set. I can't find anything in my configuration that refers to ghc-8.0.1. (The cabal.config file contains the definitions given in the Haskell Platform download page.)
What is the cause and the cure for the error message ": user specified .o/.so/.DLL could not be loaded (addDLL: pthread or dependencies not loaded. (Win32 error 193))?