[GHC] #8008: Pretty numbers (like 1`000`000)

GHC ghc-devs at haskell.org
Fri Jun 21 22:11:52 CEST 2013


#8008: Pretty numbers (like 1`000`000)
-----------------------------+----------------------------------------------
Reporter:  wvv               |          Owner:                         
    Type:  feature request   |         Status:  new                    
Priority:  normal            |      Component:  Compiler (Type checker)
 Version:  7.6.3             |       Keywords:                         
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple       
 Failure:  None/Unknown      |      Blockedby:                         
Blocking:                    |        Related:                         
-----------------------------+----------------------------------------------
 Let allow to use pretty numbers in code.

 Pattern looks like
  Digit_1 = d

  Inner_digit = d|`

  Many_digits = Digit_1(Inner_digit)*Digit_1


  Digits = Digit_1|Many_digits

 This numbers must be valid (and may be add to class Read):

 {{{
  100`000`000`000`000`000
  10`000`000.000`000`05
  0xFFFF`FFFF`FFFF`FFFF
  10`000e1`005
 and this:
  100`0`00`0`00`0`00`00``0`00```0
 but not this:
  ```1000```
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/8008>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list