[cvs-nhc98] cvs commit: nhc98/src/prelude/FFI CTypes.h CTypes.hs CTypesExtra.hs

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Sun Jun 13 08:58:23 EDT 2004


Sven Panne <Sven.Panne at aedion.de> writes:

> Murphy strikes again: Of course I stumble across exactly this bug in nhc98.
> I guess I can work around this, but fixing this would be nice. It makes the
> usage of the FFI with nhc98 a bit hard and surprising from time to time.

Yes, it would be nice to fix.

> Int8, Int16, ... seem to be handled magically different, BTW.

They are defined as
    data Int8
    data Int16
etc, that is, as algebraic datatypes with no definition.  Hence
operations on them can only be defined primitively in the runtime
system.

Regards,
    Malcolm


More information about the Cvs-nhc98 mailing list