[GHC] #7266: Allow fractional-looking integer literals
GHC
ghc-devs at haskell.org
Thu Aug 29 05:15:08 UTC 2013
#7266: Allow fractional-looking integer literals
-------------------------------------+------------------------------------
Reporter: shachaf | Owner:
Type: feature request | Status: patch
Priority: high | Milestone: 7.8.1
Component: Compiler | Version: 7.6.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets: 2245
-------------------------------------+------------------------------------
Comment (by Austin Seipp <aseipp@…>):
In [changeset:a6be6f1bd30c1476718392a259cfccf082d0da4d/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="a6be6f1bd30c1476718392a259cfccf082d0da4d"
Implement -XNumDecimals (#7266)
Under -XNumDecimals, it's possible to specify an integer literal using
compact "floating point" syntax for any floating literal constant which
also happens to be an integer. This lets us write
1.2e6 :: Integer
instead of:
1200000 :: Integer
This also makes some amendments to the users guide.
Authored-by: Shachaf Ben-Kiki <shachaf at gmail.com>
Signed-off-by: Austin Seipp <aseipp at pobox.com>
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/7266#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list