[nhc-bugs] Word is not an instance of Bits

Daan Leijen daan at cs.uu.nl
Mon Nov 29 09:32:32 EST 2004


Malcolm Wallace wrote:

>>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.

Ha great!

> The forthcoming 1.18 release will have "type Word = Word32" and

When is the "forthcoming" release expected?

Thanks for all the work on NHC btw. My morrow compiler
can be compiled completely with it (~20.000 lines of Haskell)
and it works great (except for the lack of readline functionality)

All the best,
  Daan Leijen.

on the side:
I believe it is quite important for the Haskell community
to have another "real" compiler than GHC available or otherwise
Haskell will in the future be defined as `what is accepted by ghc'.
I hope you can keep up with making the standard ghc libraries
available with nhc98 as this is probably one of the most important
issues for "real" programs.  (and yes, getting wxHaskell compiled
with nhc98 is a goal for me -- although it will probably be restricted
to the wxcore layer as nhc98 is too strict on instance head forms)


> "instance Bits Word32", available by importing either of these:
> 
>     import Data.Word 
>     import Foreign
> 
> Regards,
>     Malcolm
> 
> 
> 




More information about the Nhc-bugs mailing list