Repository: IHaskell/IHaskell

Issue #194: Installation Failed on OS X Mavericks
Created: 2014-02-17T06:48:10Z
Following are my ghc and cabal versions:
ghc --numeric-version
7.6.3
cabal --version
cabal-install version 1.18.0.2
using version 1.18.1.2 of the Cabal library

The installation failed at
cabal install ihaskell
I got
[ 3 of 13] Compiling IHaskell.Eval.Parser ( src/IHaskell/Eval/Parser.hs, dist/build/IHaskell/Eval/Parser.o )

src/IHaskell/Eval/Parser.hs:206:18:
    Ambiguous occurrence `head'
    It could refer to either `ClassyPrelude.head',
                             imported from `ClassyPrelude' at src/IHaskell/Eval/Parser.hs:18:1-45
                             (and originally defined in `mono-traversable-0.3.0.0:Data.MinLen')
                          or `Prelude.head',
                             imported from `Prelude' at src/IHaskell/Eval/Parser.hs:23:29-32
                             (and originally defined in `GHC.List')

src/IHaskell/Eval/Parser.hs:212:54:
    Ambiguous occurrence `head'
    It could refer to either `ClassyPrelude.head',
                             imported from `ClassyPrelude' at src/IHaskell/Eval/Parser.hs:18:1-45
                             (and originally defined in `mono-traversable-0.3.0.0:Data.MinLen')
                          or `Prelude.head',
                             imported from `Prelude' at src/IHaskell/Eval/Parser.hs:23:29-32
                             (and originally defined in `GHC.List')

src/IHaskell/Eval/Parser.hs:243:27:
    Ambiguous occurrence `tail'
    It could refer to either `ClassyPrelude.tail',
                             imported from `ClassyPrelude' at src/IHaskell/Eval/Parser.hs:18:1-45
                             (and originally defined in `mono-traversable-0.3.0.0:Data.MinLen')
                          or `Prelude.tail',
                             imported from `Prelude' at src/IHaskell/Eval/Parser.hs:23:35-38
                             (and originally defined in `GHC.List')
Failed to install ihaskell-0.3.0.4
cabal: Error: some packages failed to install:
ihaskell-0.3.0.4 failed during the building phase. The exception was:
ExitFailure 1

Duplicate issue #195: cabal install ihaskell failed 
Created: 2014-02-21T14:10:34Z
This is the output from cabal install ihaskell:
roland@Goms:~$ cabal install ihaskell
Resolving dependencies...
Configuring ihaskell-0.3.0.4...
Building ihaskell-0.3.0.4...
Preprocessing library ihaskell-0.3.0.4...
[ 1 of 13] Compiling Paths_ihaskell   ( dist/build/autogen/Paths_ihaskell.hs, dist/build/Paths_ihaskell.o )
[ 2 of 13] Compiling IHaskell.Eval.Util ( src/IHaskell/Eval/Util.hs, dist/build/IHaskell/Eval/Util.o )
[ 3 of 13] Compiling IHaskell.Eval.Parser ( src/IHaskell/Eval/Parser.hs, dist/build/IHaskell/Eval/Parser.o )
src/IHaskell/Eval/Parser.hs:206:18:
Ambiguous occurrence head' It could refer to eitherClassyPrelude.head',
imported from ClassyPrelude' at src/IHaskell/Eval/Parser.hs:18:1-45 (and originally defined inmono-traversable-0.3.0.2:Data.MinLen')
or Prelude.head', imported fromPrelude' at src/IHaskell/Eval/Parser.hs:23:29-32
(and originally defined in `GHC.List')
src/IHaskell/Eval/Parser.hs:212:54:
Ambiguous occurrence head' It could refer to eitherClassyPrelude.head',
imported from ClassyPrelude' at src/IHaskell/Eval/Parser.hs:18:1-45 (and originally defined inmono-traversable-0.3.0.2:Data.MinLen')
or Prelude.head', imported fromPrelude' at src/IHaskell/Eval/Parser.hs:23:29-32
(and originally defined in `GHC.List')
src/IHaskell/Eval/Parser.hs:243:27:
Ambiguous occurrence tail' It could refer to eitherClassyPrelude.tail',
imported from ClassyPrelude' at src/IHaskell/Eval/Parser.hs:18:1-45 (and originally defined inmono-traversable-0.3.0.2:Data.MinLen')
or Prelude.tail', imported fromPrelude' at src/IHaskell/Eval/Parser.hs:23:35-38
(and originally defined in `GHC.List')
Failed to install ihaskell-0.3.0.4
cabal: Error: some packages failed to install:
ihaskell-0.3.0.4 failed during the building phase. The exception was:
ExitFailure 1
Obvioulsy head needs a qualification: Either Prelude or ClassyPrelude

Closing comment (2014-02-21T15:23:16Z): Am 21.02.2014 15:43, schrieb Pi3r:

I believe this is a duplicate of #194
#194
You can solve this by using
|cabal install ihaskell --constraint=classy-prelude==0.7.0|
or you can grap the latest source from github.
—
Reply to this email directly or view it on GitHub
#195 (comment).
Many thanks. Using the latest source from github helped.
Regards
Roland