summaryrefslogtreecommitdiff
path: root/libraries/integer-simple
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-07-23 13:31:35 +0100
committerIan Lynagh <igloo@earth.li>2011-07-23 13:31:35 +0100
commit69985f0b970f324226cb9b1610f387d0aab62d1b (patch)
treeef4df3ad32816da02a20adbf2d470e9873f9b8af /libraries/integer-simple
parentd4d30941e25b40a816b7069e97d76c5387d901cf (diff)
downloadhaskell-69985f0b970f324226cb9b1610f387d0aab62d1b.tar.gz
Rename toInt# -> integerToInt for consistency
Diffstat (limited to 'libraries/integer-simple')
-rw-r--r--libraries/integer-simple/GHC/Integer.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/libraries/integer-simple/GHC/Integer.hs b/libraries/integer-simple/GHC/Integer.hs
index 118e0c6656..26e6210691 100644
--- a/libraries/integer-simple/GHC/Integer.hs
+++ b/libraries/integer-simple/GHC/Integer.hs
@@ -23,7 +23,7 @@
module GHC.Integer (
Integer,
- smallInteger, wordToInteger, integerToWord, toInt#,
+ smallInteger, wordToInteger, integerToWord, integerToInt,
#if WORD_SIZE_IN_BITS < 64
integerToWord64, word64ToInteger,
integerToInt64, int64ToInteger,
@@ -75,8 +75,8 @@ integerToWord (Negative (Some w _)) = 0## `minusWord#` w
-- Must be Naught by the invariant:
integerToWord _ = 0##
-toInt# :: Integer -> Int#
-toInt# i = word2Int# (integerToWord i)
+integerToInt :: Integer -> Int#
+integerToInt i = word2Int# (integerToWord i)
#if WORD_SIZE_IN_BITS == 64
-- Nothing