remove gratuitous usage of Double in favor of Rational
[ghc-hetmet.git] / 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 == '.'