Re: Word is not an instance of Bits
Malcolm Wallace <[email protected]> Mon, 29 Nov 2004 14:19:32 +0000
| Newsgroups | gmane.comp.lang.haskell.nhc.bugs |
|---|---|
| Organization | Dept of Computer Science, University of York |
| Message-ID | <[email protected]> |
Hi Daan,
> I am trying to compile DData with nhc98, but
> unfortunately, the Word type is not an instance
> of the Bits class, so I find myself unable to
> do an unsigned shiftR operation on them...
An unfortunate omission in 1.16, which has long been fixed in CVS.
The forthcoming 1.18 release will have "type Word = Word32" and
"instance Bits Word32", available by importing either of these:
import Data.Word
import Foreign
Regards,
Malcolm