Adding constant folding for Integer div and mod
ian at well-typed.com
Mon Jul 22 20:39:45 CEST 2013
On Fri, Jul 19, 2013 at 06:58:39PM +0200, Jan Stolarek wrote:
> It seems that currently there are no built-in constant folding rules for Integer div and mod. I plan on adding those rules, but before I do that I wanted to ask whether there is a good reason that these rules don't exist?
I can't think of one. If you discover one, please add it as a comment
where the rules would otherwise be.
Ian Lynagh, Haskell Consultant
Well-Typed LLP, http://www.well-typed.com/
More information about the ghc-devs