[GHC] #9818: Add `Natural` number type to `base`

GHC ghc-devs at haskell.org
Sat Nov 22 14:20:46 UTC 2014


#9818: Add `Natural` number type to `base`
-------------------------------------+-------------------------------------
              Reporter:  hvr         |            Owner:  hvr
                  Type:  feature     |           Status:  new
  request                            |        Milestone:  7.10.1
              Priority:  normal      |          Version:
             Component:  Core        |         Keywords:  base natural
  Libraries                          |     Architecture:  Unknown/Multiple
            Resolution:              |       Difficulty:  Unknown
      Operating System:              |       Blocked By:
  Unknown/Multiple                   |  Related Tickets:  #3650
       Type of failure:              |
  None/Unknown                       |
             Test Case:              |
              Blocking:              |
Differential Revisions:  Phab:D473   |
-------------------------------------+-------------------------------------

Comment (by Herbert Valerio Riedel <hvr@…>):

 In [changeset:"b836139099fc203a8b94849655d7dfb95dd80f4a/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="b836139099fc203a8b94849655d7dfb95dd80f4a"
 Fix `fromInteger` constructing invalid `Natural`

 This fixes a case where `isValidNatural . fromInteger` would be `False`.

 Re #9818
 }}}

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


More information about the ghc-tickets mailing list