projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote branch 'origin/master' into ghc-new-co
[ghc-hetmet.git]
/
compiler
/
prelude
/
PrelRules.lhs
diff --git
a/compiler/prelude/PrelRules.lhs
b/compiler/prelude/PrelRules.lhs
index
b01c6c1
..
93cc576
100644
(file)
--- a/
compiler/prelude/PrelRules.lhs
+++ b/
compiler/prelude/PrelRules.lhs
@@
-54,7
+54,7
@@
Well, of course you'd need a lot of rules if you did it
like that, so we use a BuiltinRule instead, so that we
can match in any two literal values. So the rule is really
more like
like that, so we use a BuiltinRule instead, so that we
can match in any two literal values. So the rule is really
more like
- (Lit 4) +# (Lit y) = Lit (x+#y)
+ (Lit x) +# (Lit y) = Lit (x+#y)
where the (+#) on the rhs is done at compile time
That is why these rules are built in here. Other rules
where the (+#) on the rhs is done at compile time
That is why these rules are built in here. Other rules