Ambiguous module name `Prelude' (base haskell98-1.1.0.0)
I was trying to compile haskell-src-1.0.1.4 with ghc-7.1.20110213 and got this error message:
evgenij@evgenij-dsk:~$ cabal install --reinstall --with-compiler=/home/evgenij/ghc-7.1.20110213/bin/ghc haskell-src-1.0.1.4
Resolving dependencies...
Configuring haskell-src-1.0.1.4...
Preprocessing library haskell-src-1.0.1.4...
shift/reduce conflicts: 2
Building haskell-src-1.0.1.4...
Implicit import declaration:
Ambiguous module name `Prelude':
it was found in multiple packages: base haskell98-1.1.0.0
cabal: Error: some packages failed to install:
haskell-src-1.0.1.4 failed during the building phase. The exception was:
ExitFailure 1
I don't know if this is specific to ghc-7.1.20110213 or some other 7.x.x versions are affected (it did compile on 6.12.3 though). Adding --ghc-option="-hide-package haskell98-1.1.0.0" seems to have no effect.
Trac metadata
Trac field | Value |
---|---|
Version | 7.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Prelude |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |