Installing ghc-mod on Windows 7 freezes forever

331 views Asked by At

I want to enable Frege, basically Haskell on JVM (https://github.com/Frege) in IntelliJ IDEA. It requires path to

ghc-mod

and

ghc-modi.

Therefore, I installed Haskell Platform for Windows 64 bit. Since Cabal is already part of the Platform, I tried

"cabal install ghc-mod"

which should have installed the package into

"c:\Users\%Username%\AppData\Roaming\cabal\bin"

Cabal printed into the console

"Resolving dependencies...", then
"Downloading x"..., and
"Configuring x",

where x is the name of some package.

This happened for couple of packages and then Cabal froze forever. What I did then was repeating the process with Haskell Platform 32bit, nevertheless, the result was the same.

Based on this experience, I decided to follow a tutorial on how to install haskell parts separately (http://blog.nikosbaxevanis.com/2015/04/15/setting-up-haskell-on-windows/). I managed to download GHC for Windows, I adjusted PATH, downloaded Cabal for Windows, run

"cabal.exe install"

and

"cabal.exe update"

and in a bash shell run

"cabal.exe install cabal-install"

As in the previous case, cabal froze, I kept run it over the night, but nothing happened at all. This is just an example of what happened in the bash:

$ ./cabal-1.22.0.0-i386-unknown-mingw32.exe install cabal-install
Resolving dependencies...
Downloading mtl-2.2.1...
Downloading network-2.6.2.1...
Downloading random-1.1...
Configuring mtl-2.2.1...
Downloading stm-2.4.4.1...
Configuring network-2.6.2.1...
Downloading text-1.2.2.0...
Configuring random-1.1...
Downloading zlib-0.6.1.1...
Configuring stm-2.4.4.1...

I'm starting to feel desperate. Haskell itself run correctly when using the Platform, the only reason why I need to interact with Cabal is the ghc-mod package, just because of the IDE. At the same time, I consider having the IDE as substantial.

Any suggestion or comment is welcome. Thanks.

0

There are 0 answers