-
Notifications
You must be signed in to change notification settings - Fork 13
Description
doc/Example.hs hangs on Windows when running with MongoDB v2.0.4 (64-bit version). My Haskell is from the Haskell Platform, GHC version 7.0.3.
Basically this part:
main = do
pipe <- runIOE $ connect (host "127.0.0.1")
e <- access pipe master "baseball" run
close pipe
print ehangs at the end of main. I run it like this:
runhaskell Example.hsI'm not which part actually hangs. If I move "print e" above "close pipe" and insert logging prints between, it seems that "print e" completes, I get the full print out and execution hangs on "close pipe".
If I completely remove "close pipe", main exits without a hang.
The odd thing is that if I compile Example.hs with ghc and run the output Example.exe, there's no hang.
I'd be happy to help you guys debug this -- it'd be awesome to be able to use mongoDB on both Linux and Windows without issues.
I got the same hang also in structured-mongoDB examples. Ran them on Linux earlier today and didn't encounter any hangs.