simonmar at microsoft.com
Mon Sep 9 05:01:07 EDT 2002
> I have just been implementing the library module `Data.Bits'
> for nhc98,
> as part of an effort to bring that compiler up-to-date with
> the latest FFI spec.
> The FFI spec says that the operations called 'shift' and 'rotate',
> shift and rotate their argument to the right. However, the GHC
> implementation in CVS shifts and rotates to the left, and is
> documented to do so.
> Who is right? FWIW, before I read any documentation I expected the
> undecorated forms to be rightward.
I think it's probably a mistake in the FFI addendum. As far as I can
tell, the GHC/Hugs implementation of Bits has always worked the other
More information about the FFI