Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Haskell base-4.x package installation

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

by running:

runhaskell Setup configure

I am getting this error:

attempting to use module `System.IO' (System/IO.hs) which is not loaded

Not in scope: `System.IO.stderr'

Not in 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 might be wrong? Also when I cd to the directory with the files and type ghci I am getting the same error but ghci works in general.

Thanks!


2 Answers

You can't upgrade the base package -- you have to upgrade your GHC. Just grab the latest GHC from the Haskell Platform: http://haskell.org/platform

like image 194
Don Stewart Avatar answered Jan 02 '26 09:01

Don Stewart


I recomend you to upgrade your GHC not base. Base-4.* is attached to latest GHC.

Latest GHC is available at here.

The error you got is when runhaskell compiled Setup.lhs, he was confused with existing System.IO and System.IO under the current directory. To avoid this, you would need to upgrade your GHC. BTW, I don't know how to upgrade base without upgrading GHC. But base depends compiler, not any particular package. So I guess it can't.

like image 31
nonowarn Avatar answered Jan 02 '26 09:01

nonowarn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!