diff options
author | Iavor Diatchki <iavor.diatchki@gmail.com> | 2017-11-02 12:02:22 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-11-02 13:19:35 -0400 |
commit | b0b80e90c0382a6cdb61c96c860feac27482d6e8 (patch) | |
tree | c1126c2636cdcd289395d4c8452ec009883d1839 /libraries/ghc-boot-th | |
parent | 1130c67bbb6dc06f513e5c8705a488a591fabadb (diff) | |
download | haskell-b0b80e90c0382a6cdb61c96c860feac27482d6e8.tar.gz |
Implement the basics of hex floating point literals
Implement hexadecmial floating point literals.
The digits of the mantissa are hexadecimal.
The exponent is written in base 10, and the base for the exponentiation is 2.
Hexadecimal literals look a lot like ordinary decimal literals, except that
they use hexadecmial digits, and the exponent is written using `p` rather than `e`.
The specification of the feature is available here:
https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0004-hexFloats.rst
For a discussion of the various choices:
https://github.com/ghc-proposals/ghc-proposals/pull/37
Reviewers: mpickering, goldfire, austin, bgamari, hvr
Reviewed By: bgamari
Subscribers: mpickering, thomie
Differential Revision: https://phabricator.haskell.org/D3066
Diffstat (limited to 'libraries/ghc-boot-th')
-rw-r--r-- | libraries/ghc-boot-th/GHC/LanguageExtensions/Type.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libraries/ghc-boot-th/GHC/LanguageExtensions/Type.hs b/libraries/ghc-boot-th/GHC/LanguageExtensions/Type.hs index 1979838a07..3e8c2a0e15 100644 --- a/libraries/ghc-boot-th/GHC/LanguageExtensions/Type.hs +++ b/libraries/ghc-boot-th/GHC/LanguageExtensions/Type.hs @@ -120,6 +120,7 @@ data Extension | MultiWayIf | BinaryLiterals | NegativeLiterals + | HexFloatLiterals | DuplicateRecordFields | OverloadedLabels | EmptyCase |