Installing the Haskell base-4.x package

when i try to install this package http://hackage.haskell.org/package/base-4.1.0.0

by doing:

runhaskell config setting

I am getting this error:

tries to use a module `System.IO '(System / IO.hs) that is not loaded

Out of scope: `System.IO.stderr '

Out of scope: `System.IO.stdin 'ghc-6.8.2: panic! (the "impossible" happened) (GHC version 6.8.2 for i386-unknown-linux): interactiveUI: setBuffering

Any ideas what could be wrong? Also, when I connect to a directory with files and type ghci, I get the same error, but ghci works at all.

Thank!

+2


source to share


3 answers


You cannot update the base package - you need to update your GHC. Just grab the latest GHC from the Haskell platform: http://haskell.org/platform



+9


source


I recommend that you upgrade your GHC, not your base. Base-4. * Attached to the latest GHC.

The latest GHC is available here .



The error you got when runhaskell compiled Setup.lhs, it was confused with the existing System.IO and System.IO in the current directory. To avoid this, you need to update your GHC. By the way, I don't know how to update the database without updating the GHC. But the base depends on the compiler, not on a specific package. So I think it is impossible.

+1


source


First try installing cabal-install. After that you can make "base install-4.1.0" and it will automatically install all the required dependencies before proceeding with the installation.

-1


source







All Articles