summaryrefslogtreecommitdiff
path: root/testsuite/.gitignore
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2014-06-21 11:38:17 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2014-06-27 20:46:32 +0200
commit1c0b5fdc9f2b6ea8166cc565383d4cd20432343c (patch)
tree52a6c1679d03672ff4e03c22642ad0b876d5ed51 /testsuite/.gitignore
parentf4766c4b4ad10ef7c58bc6b443ec244a07c68bf5 (diff)
downloadhaskell-1c0b5fdc9f2b6ea8166cc565383d4cd20432343c.tar.gz
Add -XBinaryLiterals language extension (re #9224)
Haskell2010 supports - base-10 (prefix-less), - base-8 (via `0[oO]`-prefix), and - base-16 (via `0[xX]`-prefix) integer literals. This commit adds syntax support for base-2 integer literals via the new `0[bB]` prefix. The use of a `0b` prefix for indicating binary literals is known from popular programming languages such as C++14, Perl, Python, Ruby, and Java. This syntax extension is disabled by default and can be enabled via the new `{-# LANGUAGE BinaryLiterals #-}` pragma and/or the new `-XBinaryLiterals` This new extensions requires to upgrade the `ExtsBitmap` type from `Word` to `Word64` as this adds a 33th flag which is not guaranteed to fit into a `Word`. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org> Differential Revision: https://phabricator.haskell.org/D22
Diffstat (limited to 'testsuite/.gitignore')
-rw-r--r--testsuite/.gitignore3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/.gitignore b/testsuite/.gitignore
index 519d432273..f25ca25097 100644
--- a/testsuite/.gitignore
+++ b/testsuite/.gitignore
@@ -1016,6 +1016,9 @@ tests/overloadedlists/should_run/overloadedlistsrun05
tests/parser/should_compile/T5243
tests/parser/should_compile/T7476/Main.imports
tests/parser/should_compile/T7476/T7476
+tests/parser/should_run/BinaryLiterals0
+tests/parser/should_run/BinaryLiterals1
+tests/parser/should_run/BinaryLiterals2
tests/parser/should_run/ParserMultiWayIf
tests/parser/should_run/T1344
tests/parser/should_run/operator