[Haskell-cafe] Trouble building ArrayRef 0.1.3
dons at galois.com
Fri Feb 27 11:30:16 EST 2009
> Hello Mads,
> Friday, February 27, 2009, 6:27:52 PM, you wrote:
> i made this lib back in the ghc 6.4 days, so it probably have a lot of
> compatibility problems here and there :( i'm self still use ghc 6.6 :)
> > When I try to build ArrayRef 0.1.3 I get:
> > Control/Concurrent/LockingBZ.hs:159:54:
> > Ambiguous type variable `e' in the constraint:
> > `Exception e'
> > arising from a use of `throw'
> > at Control/Concurrent/LockingBZ.hs:159:54-60
> > Probable fix: add a type signature that fixes these type variable(s)
It needs --constraint='base<4' when compiling.
Here, with cabal and ghc 6.10:
$ cabal install --constraint='base<4' arrayref
Preprocessing library ArrayRef-0.1.3...
[ 1 of 24] Compiling GHC.Unboxed ( GHC/Unboxed.hs,
[ 2 of 24] Compiling Data.ArrayBZ.Internals.IArray (
Installing library in
Reading package info from "dist/installed-pkg-config" ... done.
Writing new package config file... done.
Thanks to Gwern, I believe, for packaging this up for hackage.
More information about the Haskell-Cafe