What data type are you dealing with exactly? If you have a socket, I guess you can just use it from C (via FFI).
PS: By "Network.Connection", do you mean http://hackage.haskell.org/package/network-connection-0.1.1 ? Seems deprecated. On 28/02/13 06:14, C K Kashyap wrote: > 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 > > > _______________________________________________ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe