[GHC] #14465: Performance of Natural

GHC ghc-devs at haskell.org
Fri Jun 15 21:01:11 UTC 2018


#14465: Performance of Natural
-------------------------------------+-------------------------------------
        Reporter:  Bodigrim          |                Owner:  (none)
            Type:  feature request   |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:  duplicate         |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #14170            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"fe770c211631e7b4c9b0b1e88ef9b6046c6585ef/ghc"
 fe770c21/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="fe770c211631e7b4c9b0b1e88ef9b6046c6585ef"
 Built-in Natural literals in Core

 Add support for built-in Natural literals in Core.

 - Replace MachInt,MachWord, LitInteger, etc. with a single LitNumber
   constructor with a LitNumType field
 - Support built-in Natural literals
 - Add desugar warning for negative literals
 - Move Maybe(..) from GHC.Base to GHC.Maybe for module dependency
   reasons

 This patch introduces only a few rules for Natural literals (compared
 to Integer's rules). Factorization of the built-in rules for numeric
 literals will be done in another patch as this one is already big to
 review.

 Test Plan:
   validate
   test build with integer-simple

 Reviewers: hvr, bgamari, goldfire, Bodigrim, simonmar

 Reviewed By: bgamari

 Subscribers: phadej, simonpj, RyanGlScott, carter, hsyl20, rwbarton,
 thomie

 GHC Trac Issues: #14170, #14465

 Differential Revision: https://phabricator.haskell.org/D4212
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14465#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list