What is the error mean for bloomfilter?

$ cabal install bloomfilter Resolving dependencies... Configuring bloomfilter-2.0.0.0... Building bloomfilter-2.0.0.0... Failed to install bloomfilter-2.0.0.0 Build log ( /Users/pengy/.cabal/logs/bloomfilter-2.0.0.0.log ): Configuring bloomfilter-2.0.0.0... Building bloomfilter-2.0.0.0... Preprocessing library bloomfilter-2.0.0.0... [1 of 7] Compiling Data.BloomFilter.Array ( Data/BloomFilter/Array.hs, dist/build/Data/BloomFilter/Array.o ) [2 of 7] Compiling Data.BloomFilter.Mutable.Internal ( Data/BloomFilter/Mutable/Internal.hs, dist/build/Data/BloomFilter/Mutable/Internal.o ) [3 of 7] Compiling Data.BloomFilter.Util ( Data/BloomFilter/Util.hs, dist/build/Data/BloomFilter/Util.o ) [4 of 7] Compiling Data.BloomFilter.Mutable ( Data/BloomFilter/Mutable.hs, dist/build/Data/BloomFilter/Mutable.o ) Data/BloomFilter/Mutable.hs:136:9: Non type-variable argument in the constraint: Data.Array.Base.MArray (Data.Array.Base.STUArray s) Hash m (Use FlexibleContexts to permit this) When checking that ‘loop’ has the inferred type loop :: forall (m :: * -> *). Data.Array.Base.MArray (Data.Array.Base.STUArray s) Hash m => [Int :* Int] -> m Bool In an equation for ‘elem’: elem elt mb = loop (hashesM mb elt) where mu = bitArray mb loop ((word :* bit) : wbs) = do { i <- unsafeRead mu word; .... } loop _ = return True cabal: Error: some packages failed to install: bloomfilter-2.0.0.0 failed during the building phase. The exception was: ExitFailure 1 -- Regards, Peng

Hi,
On 16 May 2015 at 03:57, Peng Yu
Data/BloomFilter/Mutable.hs:136:9: Non type-variable argument in the constraint: [...]
Not a Cabal issue: the library wasn't updated to work with GHC 7.10. See https://github.com/bos/bloomfilter/issues/11 and https://github.com/bos/bloomfilter/pull/10

I'm not sure how to fix the problem after reading the links you
pointed. Would you please be specific what should be done? Thanks.
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.1
On Sat, May 16, 2015 at 7:45 AM, Mikhail Glushenkov
Hi,
On 16 May 2015 at 03:57, Peng Yu
wrote: Data/BloomFilter/Mutable.hs:136:9: Non type-variable argument in the constraint: [...]
Not a Cabal issue: the library wasn't updated to work with GHC 7.10. See https://github.com/bos/bloomfilter/issues/11 and https://github.com/bos/bloomfilter/pull/10
-- Regards, Peng

On 05/16/2015 03:31 PM, Peng Yu wrote:
I'm not sure how to fix the problem after reading the links you pointed. Would you please be specific what should be done? Thanks.
$ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.10.1
On Sat, May 16, 2015 at 7:45 AM, Mikhail Glushenkov
wrote: Hi,
On 16 May 2015 at 03:57, Peng Yu
wrote: Data/BloomFilter/Mutable.hs:136:9: Non type-variable argument in the constraint: [...]
Not a Cabal issue: the library wasn't updated to work with GHC 7.10. See https://github.com/bos/bloomfilter/issues/11 and https://github.com/bos/bloomfilter/pull/10
It's not a cabal problem, it's not relevant on this list. The links you were given already point out that the issue is known and even a link to the pull request that fixes it. -- Mateusz K.

But I am not able to install version 2.0.1. How to get 2.0.1 via cabal?
On Sat, May 16, 2015 at 10:12 AM, Mateusz Kowalczyk
On 05/16/2015 03:31 PM, Peng Yu wrote:
I'm not sure how to fix the problem after reading the links you pointed. Would you please be specific what should be done? Thanks.
$ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.10.1
On Sat, May 16, 2015 at 7:45 AM, Mikhail Glushenkov
wrote: Hi,
On 16 May 2015 at 03:57, Peng Yu
wrote: Data/BloomFilter/Mutable.hs:136:9: Non type-variable argument in the constraint: [...]
Not a Cabal issue: the library wasn't updated to work with GHC 7.10. See https://github.com/bos/bloomfilter/issues/11 and https://github.com/bos/bloomfilter/pull/10
It's not a cabal problem, it's not relevant on this list. The links you were given already point out that the issue is known and even a link to the pull request that fixes it.
-- Mateusz K. _______________________________________________ cabal-devel mailing list cabal-devel@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel
-- Regards, Peng

On 16 May 2015 at 17:35, Peng Yu
But I am not able to install version 2.0.1. How to get 2.0.1 via cabal?
It hasn't been released yet. You can get a patched version from GitHub: $ git clone https://github.com/mikeizbicki/bloomfilter.git bloomfilter-2.0.1 $ cd bloomfilter-2.0.1 $ cabal install
participants (3)
-
Mateusz Kowalczyk
-
Mikhail Glushenkov
-
Peng Yu