selectel / mongoDB-haskell

MongoDB driver for Haskell
http://hackage.haskell.org/package/mongoDB
Apache License 2.0
21 stars 11 forks source link

line 70 doesn't compile in Pipeline if base is not 4.6.0 #19

Closed VictorDenisov closed 10 years ago

VictorDenisov commented 10 years ago

The problem is that if base is not 4.6.0 then

mkWeakMVar is defined as

mkWeakMVar :: MVar a -> IO () -> IO ()
mkWeakMVar = addMVarFinalizer

and line 70: _ <- mkWeakMVar

is incorrect then.

knsd commented 10 years ago

Hello, Victor. Can you please provide full trace?

VictorDenisov commented 10 years ago

victor@victor-alto:~/projects/haskell/moe$ cabal install mongoDB Resolving dependencies... Configuring mongoDB-1.4.2... Building mongoDB-1.4.2... Preprocessing library mongoDB-1.4.2...

System/IO/Pipeline.hs:5:14: Warning: -XRecursiveDo is deprecated: use -XDoRec or pragma {-# LANGUAGE DoRec #-} instead [1 of 8] Compiling System.IO.Pool ( System/IO/Pool.hs, dist/build/System/IO/Pool.o ) [2 of 8] Compiling System.IO.Pipeline ( System/IO/Pipeline.hs, dist/build/System/IO/Pipeline.o )

System/IO/Pipeline.hs:70:17: parse error on input `let' Failed to install mongoDB-1.4.2 cabal: Error: some packages failed to install: mongoDB-1.4.2 failed during the building phase. The exception was: ExitFailure 1

VictorDenisov commented 10 years ago

My version of base package is 4.5.0

knsd commented 10 years ago

Thanks, Victor. Working version already at Hackage.

VictorDenisov commented 10 years ago

Thanks for the quick response.