| What is the best way to call functions implemented in Haskell from
| Visual Basic for Applications (MS Access)?
| I suppose I will have to build a DLL with GHC + Cygwin, but
| up to now I
| didn't manage to do so. I there a "How to"?
This isn't directly what you wanted, but: I packaged up Stg Hugs
as a DLL which you can call from VB. You can ask it to load
a Haskell module, and run functions in that module, passing
results back and forth to VB.
Building DLLs with Cygwin which can be called from the native
MS tools seems to be somewhere between difficult and impossible,
depending on who you ask. I never managed it. A much better
bet is to use the Mingw32 toolchain to build DLLs -- that's how
I did the abovementioned experiment.
I think GHC supports generating Mingw32-ised DLLs, so you might
be in luck there. Unfortunately our Windows expert (Reuben Thomas)
is away until Monday, and he knows much more than I do.
J