Re: Word is not an instance of Bits
Daan Leijen <[email protected]> Mon, 29 Nov 2004 15:32:32 +0100
| Newsgroups | gmane.comp.lang.haskell.nhc.bugs |
|---|---|
| Message-ID | <[email protected]> |
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 > > >