patch applied (ghc-7.0/packages/integer-gmp): Add a rewrite rule for toInt# so literals work right

Simon Peyton Jones simonpj at microsoft.com
Thu Feb 24 18:51:00 CET 2011


Tue Oct 26 01:29:55 PDT 2010  simonpj at microsoft.com
  * Add a rewrite rule for toInt# so literals work right
  
  See the comments with toInt#, but the key point is
  that we want (fromInteger 1)::Int to yield (I# 1)!

    M ./GHC/Integer.lhs +6

View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=ghc-7.0/packages/integer-gmp;a=darcs_commitdiff;h=20101026082955-1287e-6f78fa5a678b57d08a485b7e16d33fbefd4d4e6d.gz



More information about the Cvs-libraries mailing list