[commit: ghc] master: Mention existence of 'Natural' in "Data.Word" (a29e295)

git at git.haskell.org git at git.haskell.org
Tue Dec 2 07:40:26 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/a29e295c6fddfb0bbd390cff8cf2e5dbe9b1aa5b/ghc

>---------------------------------------------------------------

commit a29e295c6fddfb0bbd390cff8cf2e5dbe9b1aa5b
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Tue Dec 2 08:38:38 2014 +0100

    Mention existence of 'Natural' in "Data.Word"
    
    This replaces the note mentioning the lack of a `Natural`-type by a note
    pointing to the new "Numeric.Natural" (#9818) module.


>---------------------------------------------------------------

a29e295c6fddfb0bbd390cff8cf2e5dbe9b1aa5b
 libraries/base/Data/Word.hs | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libraries/base/Data/Word.hs b/libraries/base/Data/Word.hs
index 8af39b6..f20844f 100644
--- a/libraries/base/Data/Word.hs
+++ b/libraries/base/Data/Word.hs
@@ -43,10 +43,8 @@ import GHC.Word
   common cases so should be fast enough.  Coercing word types to and
   from integer types preserves representation, not sign.
 
-* It would be very natural to add a type @Natural@ providing an unbounded 
-  size unsigned integer, just as 'Prelude.Integer' provides unbounded
-  size signed integers.  We do not do that yet since there is no demand
-  for it.
+* An unbounded size unsigned integer type is available with
+  'Numeric.Natural.Natural'.
 
 * The rules that hold for 'Prelude.Enum' instances over a bounded type
   such as 'Prelude.Int' (see the section of the Haskell report dealing



More information about the ghc-commits mailing list