Importing a reference to a non-function entity.

George Russell
Wed, 20 Feb 2002 15:37:33 +0100

Simon Marlow wrote:
> I believe you meant to say
>   foreign import ccall "&default_options"
>      defaultOptions :: CString.Cstring
> :-)  (see the latest FFI addendum at

Yes, it works, brilliant!  And I can specify the C header file too, rather than having to
hack it unreliably using a pragma at the top of the file.