Hi,
I am using Network.Connection to connect to gmail in my Haskell module - that's compiled to DLL and invoked from C.

I need a mechanism to return the connection handle to C so that it can pass it in the subsequent calls. How can I achieve this?

Regards,
Kashyap