module Data.Bits

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Sep 10 08:56:47 EDT 2002


Manuel M T Chakravarty <chak at cse.unsw.edu.au> writes:

> So, I would propose to
> change the FFI spec.  The main reason being that there is
> already plenty of code which relies on the current
> definition in GHC's Bits and there is no good reason to
> break that code.  Objections?

That's fine with me.

Another conflict between the FFI spec and the current
library implementation:  the spec says

    "The function bitSize returns 0 for types that don't have a
     fixed bitsize (e.g. Integer)."

whereas the current ghc implementation defines bitSize of Integer
as a runtime error.

Regards,
    Malcolm



More information about the FFI mailing list