mistake in definition of CFile?

John Meacham john at repetae.net
Sat Jan 22 18:53:08 EST 2005

The FFI spec says (in section 6.2) that CFile represents the C type
'FILE' and has Eq and Storable instances.

Is this a mistake? FILE is opaque and AFAIK, you can't copy or compare its
contents and expect it to work. I can think of two possible

* the table should say CFile is equivalant to 'FILE *'.
* One is meant to use 'Ptr CFile' and no Eq or Storable instances should
exist for CFile. (it is opaque) 

John Meacham - ⑆repetae.net⑆john⑈ 

More information about the FFI mailing list