How to use functions in dll file in Haskell program?

Liu Junfeng liujf@softhome.net
Fri, 18 Jul 2003 18:29:35 +0800


Hi=A3=AC
If there is a function named "func" with type a->b in a win32 dll=
 file.
In Hugs use the primitive declaration:
-------------------------------
primitive prim_func :: a -> b  
func =3D prim_func
-------------------------------
Then the func can be exported to be used in other modules.

The question is how to do it in GHC?


Cheers,
Liu Junfeng
liujf@softhome.net
2003-07-18