summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/T4437.hs
diff options
context:
space:
mode:
authorIavor Diatchki <iavor.diatchki@gmail.com>2017-11-02 12:02:22 -0400
committerBen Gamari <ben@smart-cactus.org>2017-11-02 13:19:35 -0400
commitb0b80e90c0382a6cdb61c96c860feac27482d6e8 (patch)
treec1126c2636cdcd289395d4c8452ec009883d1839 /testsuite/tests/driver/T4437.hs
parent1130c67bbb6dc06f513e5c8705a488a591fabadb (diff)
downloadhaskell-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 'testsuite/tests/driver/T4437.hs')
-rw-r--r--testsuite/tests/driver/T4437.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/tests/driver/T4437.hs b/testsuite/tests/driver/T4437.hs
index c26a38861c..4e7ddd7482 100644
--- a/testsuite/tests/driver/T4437.hs
+++ b/testsuite/tests/driver/T4437.hs
@@ -41,7 +41,8 @@ expectedGhcOnlyExtensions = ["RelaxedLayout",
"AlternativeLayoutRuleTransitional",
"UnboxedSums",
"DerivingStrategies",
- "EmptyDataDeriving"]
+ "EmptyDataDeriving",
+ "HexFloatLiterals"]
expectedCabalOnlyExtensions :: [String]
expectedCabalOnlyExtensions = ["Generics",