module Data.Bits

Malcolm Wallace Malcolm.Wallace@cs.york.ac.uk
Tue, 10 Sep 2002 13:56:47 +0100


Manuel M T Chakravarty <chak@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