Can't install Criterion package on ghc ..

John Lato jwlato at gmail.com
Wed Apr 14 12:55:33 EDT 2010


I'm not the original reporter, but I can confirm that I am able to
install Criterion-0.5.0 with ghc-6.12.1 on OSX 10.6.  One datum,
anyway.

The problem isn't with criterion itself, but with vector-algorithms.
The vector library relies heavily on type families, which have dodgy
support in ghc-6.10.

John

On Wed, Apr 14, 2010 at 3:24 PM, Simon Peyton-Jones
<simonpj at microsoft.com> wrote:
> Can you check?  If it still happens with 6.12, please submit a bug report.
> If 6.10 can't compile criterion, you might want to add a constraint to the Cabal meta-data.
>
> Simon
>
> | -----Original Message-----
> | From: glasgow-haskell-users-bounces at haskell.org [mailto:glasgow-haskell-
> | users-bounces at haskell.org] On Behalf Of John Lato
> | Sent: 13 April 2010 16:15
> | To: Mozhgan kabiri
> | Cc: glasgow-haskell-users at haskell.org
> | Subject: Re: Can't install Criterion package on ghc ..
> |
> | > From: Mozhgan kabiri <mozhgan.kabiri at gmail.com>
> | >
> | > Hi,
> | >
> | > I am trying to install Criterion package, but I keep getting an error and I
> | > can't figure it out why it is like this !!
> | >
> | > mozhgan at Mozhgan-KCh:~$ cabal install Criterion
> | > Resolving dependencies...
> | > Configuring vector-algorithms-0.3...
> | > Preprocessing library vector-algorithms-0.3...
> | > Building vector-algorithms-0.3...
> | ...
> |
> | > [8 of 9] Compiling Data.Vector.Algorithms.Intro (
> | > Data/Vector/Algorithms/Intro.hs, dist/build/Data/Vector/Algorithms/Intro.o
> | )
> | > ghc: panic! (the 'impossible' happened)
> | >  (GHC version 6.10.4 for i386-unknown-linux):
> | >    idInfo co{v a9WB} [tv]
> |
> | This is definitely a bug in GHC, most likely related to type families
> | and fixed in GHC-6.12.x
> |
> | If you can upgrade to ghc-6.12.1, that should solve this problem.  If
> | you need to remain on ghc-6.10.4, try installing an older version of
> | criterion.  You can do this with 'cabal install criterion-0.4.1.0'
> | Criterion-0.5 is the first version to depend upon vector-algorithms,
> | so any previous version has a chance of working.
> |
> | John
> | _______________________________________________
> | Glasgow-haskell-users mailing list
> | Glasgow-haskell-users at haskell.org
> | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>
>


More information about the Glasgow-haskell-users mailing list