summaryrefslogtreecommitdiff
path: root/libraries/integer-simple
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-06-02 18:51:49 +0000
committerIan Lynagh <igloo@earth.li>2008-06-02 18:51:49 +0000
commiteebd9c717e706a5871e76dabda13bb19bea731a3 (patch)
tree3e71d8c904d8a071b05813e4c55b2c60ad6ce94e /libraries/integer-simple
parent1698be30e2f3c96a5e7b947a37de85ab97bad5ce (diff)
downloadhaskell-eebd9c717e706a5871e76dabda13bb19bea731a3.tar.gz
Make the Integer type components strict
Diffstat (limited to 'libraries/integer-simple')
-rw-r--r--libraries/integer-simple/GHC/Integer.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/integer-simple/GHC/Integer.hs b/libraries/integer-simple/GHC/Integer.hs
index 0b03061a39..d4df60d42a 100644
--- a/libraries/integer-simple/GHC/Integer.hs
+++ b/libraries/integer-simple/GHC/Integer.hs
@@ -50,7 +50,7 @@ errorInteger = Positive errorPositive
errorPositive :: Positive
errorPositive = Some 47## None -- Random number
-data Integer = Positive Positive | Negative Positive | Naught
+data Integer = Positive !Positive | Negative !Positive | Naught
smallInteger :: Int# -> Integer
smallInteger i = if i >=# 0# then wordToInteger (int2Word# i)
@@ -380,7 +380,7 @@ hashInteger _ = 42#
type Positive = Digits
type Positives = List Positive
-data Digits = Some Digit Digits
+data Digits = Some !Digit !Digits
| None
type Digit = Word#