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

#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

#8008: Pretty numbers (like 1`000`000) ---------------------------------+------------------------------------------ Reporter: wvv | Owner: Type: feature request | Status: closed Priority: normal | Component: Compiler (Type checker) Version: 7.6.3 | Resolution: invalid Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Changes (by carter): * status: new => closed * resolution: => invalid Comment: this requires changes to the haskell grammar and I think that theres no strong reason for this. You can emulate this functionality partially using the overloaded strings extension. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/8008#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC