[commit: ghc] master: Refactor PrelRules and add more rules (#7014) (6a43840)

Simon Peyton-Jones simonpj at microsoft.com
Mon Aug 13 15:59:52 CEST 2012


Paolo

Thanks for doing this primop-rule stuff.  Did you add a "Note" to explain why the primop rules are here rather than in (say) GHC.Base where they were?  I forget the details, but I'd like to record the thinking somewhere.  Presumably PrelRules is the place to do so.

Simon

| -----Original Message-----
| From: cvs-ghc-bounces at haskell.org [mailto:cvs-ghc-bounces at haskell.org]
| On Behalf Of Paolo Capriotti
| Sent: 27 July 2012 09:34
| To: cvs-ghc at haskell.org
| Subject: [commit: ghc] master: Refactor PrelRules and add more rules
| (#7014) (6a43840)
| 
| Repository : ssh://darcs.haskell.org//srv/darcs/ghc
| 
| On branch  : master
| 
| http://hackage.haskell.org/trac/ghc/changeset/6a43840c9d9e0bcbfac64ee7f
| 5fbd22a5701af5a
| 
| >---------------------------------------------------------------
| 
| commit 6a43840c9d9e0bcbfac64ee7f5fbd22a5701af5a
| Author: Paolo Capriotti <p.capriotti at gmail.com>
| Date:   Wed Jul 4 11:47:55 2012 +0100
| 
|     Refactor PrelRules and add more rules (#7014)
| 
|     Ported various rules for numeric types from GHC.Base. Added new
| rules
|     for bitwise operations, shifts and word comparisons.
| 
|  compiler/basicTypes/MkId.lhs   |    2 +-
|  compiler/prelude/PrelRules.lhs |  580 +++++++++++++++++++++++---------
| --------
|  2 files changed, 335 insertions(+), 247 deletions(-)
| 
| 
| Diff suppressed because of size. To see it, use:
| 
|     git show 6a43840c9d9e0bcbfac64ee7f5fbd22a5701af5a
| 
| _______________________________________________
| Cvs-ghc mailing list
| Cvs-ghc at haskell.org
| http://www.haskell.org/mailman/listinfo/cvs-ghc





More information about the Cvs-ghc mailing list