
bulat.ziganshin:
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 Resolving dependencies... Downloading ArrayRef-0.1.3... Configuring ArrayRef-0.1.3... Preprocessing library ArrayRef-0.1.3... Building ArrayRef-0.1.3... [ 1 of 24] Compiling GHC.Unboxed ( GHC/Unboxed.hs, dist/build/GHC/Unboxed.o ) [ 2 of 24] Compiling Data.ArrayBZ.Internals.IArray ( Data/ArrayBZ/Internals/IArray.hs, dist/build/Data/ArrayBZ/Internals/IArray.o ) ... Installing library in /home/dons/.cabal/lib/ArrayRef-0.1.3/ghc-6.10.1 Registering ArrayRef-0.1.3... 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. -- Don