Primitive types and Prelude shenanigans
Marcin 'Qrczak' Kowalczyk
21 Feb 2001 07:04:02 GMT
Wed, 21 Feb 2001 12:55:37 +1100, Fergus Henderson <email@example.com> pisze:
> The documentation in the Haskell report does not say what
> `fromInteger' should do for `Int', but the Hugs behaviour definitely
> seems preferable, IMHO.
Sometimes yes. But for playing with Word8, Int8, CChar etc. it's
sometimes needed to just cast bits without overflow checking, to
convert between "signed bytes" and "unsigned bytes".
__("< Marcin Kowalczyk * firstname.lastname@example.org http://qrczak.ids.net.pl/
^^ SYGNATURA ZASTĘPCZA