FFI Report, CVS Id 1.5

Simon Peyton-Jones simonpj at microsoft.com
Mon Jun 18 05:23:05 EDT 2001

| IMHO, this is not a very attractive solution.  I'd prefer to 
| complicate the ccall entity description slightly and go for
|  	foreign import ccall "myheader.h foo at mylib" foo :: Int -> Int
| Ie, we optionally allow the specification of the name of a
| dll.  This is only a hint and may be ignored by a given
| Haskell system (in particular, in most systems, command line 
| options overrule such library names).

OK: belt and braces.  Certainly the 'mylib' is properly part of foo's
name.  Let's use the "::" syntax which .NET uses for other namespace

	"myheader.h mylib::foo" foo :: Int->Int


More information about the FFI mailing list