diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-04-02 17:00:22 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-04-03 00:41:05 -0400 |
commit | dd3a3d08e99114b791f5d1ef9218d922cdfd90e0 (patch) | |
tree | 77838d259a143288c815c965f133ead65fdf4459 /libraries | |
parent | 3364def0a28d8b888f558cb9fdab379685636854 (diff) | |
download | haskell-dd3a3d08e99114b791f5d1ef9218d922cdfd90e0.tar.gz |
integer-simple: Add documentation for Integer type
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/integer-simple/GHC/Integer/Type.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libraries/integer-simple/GHC/Integer/Type.hs b/libraries/integer-simple/GHC/Integer/Type.hs index cdbeb86a70..ceb4c38324 100644 --- a/libraries/integer-simple/GHC/Integer/Type.hs +++ b/libraries/integer-simple/GHC/Integer/Type.hs @@ -34,6 +34,9 @@ import GHC.Tuple () import GHC.IntWord64 #endif +-- | Arbitrary precision integers. In contrast with fixed-size integral types +-- such as 'Int', the 'Integer' type represents the entire infinite range of +-- integers. data Integer = Positive !Positive | Negative !Positive | Naught ------------------------------------------------------------------- |