remove gratuitous usage of Double in favor of Rational
authorIsaac Dupree <id@isaac.cedarswampstudios.org>
Tue, 7 Aug 2007 12:22:34 +0000 (12:22 +0000)
committerIsaac Dupree <id@isaac.cedarswampstudios.org>
Tue, 7 Aug 2007 12:22:34 +0000 (12:22 +0000)
compiler/main/StaticFlags.hs

index 9c4427c..f9312a2 100644 (file)
@@ -412,7 +412,7 @@ decodeSize str
   | c == "G" || c == "g" = truncate (n * 1000 * 1000 * 1000)
   | otherwise            = throwDyn (CmdLineError ("can't decode size: " ++ str))
   where (m, c) = span pred str
-        n      = read m  :: Double
+        n      = readRational m
        pred c = isDigit c || c == '.'