Trouble building ArrayRef 0.1.3

Hi 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) I am compiling with:
runhaskell Setup.hs build
I run Debian Linux with GHC 6.10.1. Anybody has a solution for my problem? Greetings, Mads Lindstrøm

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)
I am compiling with:
runhaskell Setup.hs build
I run Debian Linux with GHC 6.10.1.
Anybody has a solution for my problem?
Greetings,
Mads Lindstrøm
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com

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

Hi For anyone who may care, I have googled a workaround. The problem below is similar to the problem mentioned here http://stackoverflow.com/questions/431527/ambiguous-type-variable-error-msg . I wrote:
Hi
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)
I am compiling with:
runhaskell Setup.hs build
I run Debian Linux with GHC 6.10.1.
Anybody has a solution for my problem?
Greetings,
Mads Lindstrøm
/Mads

Hello Mads, Friday, February 27, 2009, 10:08:17 PM, you wrote: http://haskell.org/haskellwiki/Upgrading_packages is more appropriate, see 2.3
Hi
For anyone who may care, I have googled a workaround. The problem below is similar to the problem mentioned here http://stackoverflow.com/questions/431527/ambiguous-type-variable-error-msg
I wrote:
Hi
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)
I am compiling with:
runhaskell Setup.hs build
I run Debian Linux with GHC 6.10.1.
Anybody has a solution for my problem?
Greetings,
Mads Lindstrøm
/Mads
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com
participants (3)
-
Bulat Ziganshin
-
Don Stewart
-
Mads Lindstrøm