summaryrefslogtreecommitdiff
path: root/compiler/prelude/PrelRules.lhs
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-10-16 15:28:26 +0100
committerIan Lynagh <ian@well-typed.com>2012-10-16 16:08:38 +0100
commitcd33eefd0467ae7ee4d22f16fcaaccfd33f18cb5 (patch)
tree30fb18578f1c5c81fef7ccc6ec5879a41fd4e5c0 /compiler/prelude/PrelRules.lhs
parent6759e5a482d927870c90efe97b820d492785a6fd (diff)
downloadhaskell-cd33eefd0467ae7ee4d22f16fcaaccfd33f18cb5.tar.gz
Some alpha renaming
Mostly d -> g (matching DynFlag -> GeneralFlag). Also renamed if* to when*, matching the Haskell if/when names
Diffstat (limited to 'compiler/prelude/PrelRules.lhs')
-rw-r--r--compiler/prelude/PrelRules.lhs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/prelude/PrelRules.lhs b/compiler/prelude/PrelRules.lhs
index d1a2efdf6f..5d414940a8 100644
--- a/compiler/prelude/PrelRules.lhs
+++ b/compiler/prelude/PrelRules.lhs
@@ -580,9 +580,9 @@ nonZeroLit n = getLiteral n >>= guard . not . isZeroLit
-- Rational value to that of Float/Double. We confuse host architecture
-- and target architecture here, but it's convenient (and wrong :-).
convFloating :: DynFlags -> Literal -> Literal
-convFloating dflags (MachFloat f) | not (dopt Opt_ExcessPrecision dflags) =
+convFloating dflags (MachFloat f) | not (gopt Opt_ExcessPrecision dflags) =
MachFloat (toRational (fromRational f :: Float ))
-convFloating dflags (MachDouble d) | not (dopt Opt_ExcessPrecision dflags) =
+convFloating dflags (MachDouble d) | not (gopt Opt_ExcessPrecision dflags) =
MachDouble (toRational (fromRational d :: Double))
convFloating _ l = l