
17 Mar
2005
17 Mar
'05
8:11 p.m.
Hi, I'm trying to make a Haskell binding for the FUSE library, http://fuse.sourceforge.net/. The FUSE concept is centered around a struct whose members are pointers to callback functions. Here's the problem: the functions I want to callback to have types like this: vGetLine :: HVFS a -> a -> IO String Now, I can't just pass some sort of opaque pointer to C, because then the exact type of a would be lost. Is there any other method I might try? Thanks, John