From: simonmar Date: Wed, 2 Feb 2005 15:21:02 +0000 (+0000) Subject: [project @ 2005-02-02 15:21:02 by simonmar] X-Git-Tag: nhc98-1-18-release~34 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=a1829008e4cdf36a1ecdda221e52e94a2030464a;hp=5296d8bd89b06d00878a1922da296dd3bbda623e;p=ghc-base.git [project @ 2005-02-02 15:21:02 by simonmar] doc fixes --- diff --git a/Data/Int.hs b/Data/Int.hs index 1033270..d189a3e 100644 --- a/Data/Int.hs +++ b/Data/Int.hs @@ -45,15 +45,15 @@ import NHC.SizedTypes (Int8, Int16, Int32, Int64) -- instances of Bits * All arithmetic is performed modulo 2^n, where @n@ is the number of bits in the type. -* For coercing between any two integer types, use 'fromIntegral', +* For coercing between any two integer types, use 'Prelude.fromIntegral', which is specialized for all the common cases so should be fast enough. Coercing word types (see "Data.Word") to and from integer types preserves representation, not sign. -* The rules that hold for 'Enum' instances over a +* The rules that hold for 'Prelude.Enum' instances over a bounded type such as 'Int' (see the section of the Haskell report dealing with arithmetic sequences) also hold for the - 'Enum' instances over the various + 'Prelude.Enum' instances over the various 'Int' types defined here. * Right and left shifts by amounts greater than or equal to the width