Skip to content

doc/Example.hs hangs on 'close pipe' #23

@nurpax

Description

@nurpax

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 e

hangs at the end of main. I run it like this:

runhaskell Example.hs

I'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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions