Primitive types and Prelude shenanigans

Marcin 'Qrczak' Kowalczyk qrczak@knm.org.pl
21 Feb 2001 07:04:02 GMT


Wed, 21 Feb 2001 12:55:37 +1100, Fergus Henderson <fjh@cs.mu.oz.au> 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 * qrczak@knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK