[commit: ghc] master: users-guide: Update release notes and language extensions (f02309f)
git at git.haskell.org
git at git.haskell.org
Fri Apr 13 16:06:40 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/f02309fe66606ffbd2d52d9347438e11890f7cfa/ghc
>---------------------------------------------------------------
commit f02309fe66606ffbd2d52d9347438e11890f7cfa
Author: Takenobu Tani <takenobu.hs at gmail.com>
Date: Fri Apr 13 11:31:23 2018 -0400
users-guide: Update release notes and language extensions
Update release notes and language extensions for GHC 8.6.1.
* Add `BlockArguments` and `NumericUndescores` in release note
* Fix directive for `HexFloatLiterals` and `NumericUndescores`
Test Plan: build
Reviewers: bgamari
Reviewed By: bgamari
Subscribers: thomie, carter
Differential Revision: https://phabricator.haskell.org/D4579
>---------------------------------------------------------------
f02309fe66606ffbd2d52d9347438e11890f7cfa
docs/users_guide/8.6.1-notes.rst | 10 ++++++++++
docs/users_guide/glasgow_exts.rst | 16 +++++-----------
2 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/docs/users_guide/8.6.1-notes.rst b/docs/users_guide/8.6.1-notes.rst
index 6300a3f..74bf929 100644
--- a/docs/users_guide/8.6.1-notes.rst
+++ b/docs/users_guide/8.6.1-notes.rst
@@ -60,6 +60,16 @@ Language
- Scoped type variables now work in default methods of class declarations
and in pattern synonyms in Template Haskell. See :ghc-ticket:`14885`.
+- ``do`` expressions, lambda expressions, etc. to be directly used as
+ a function argument, enabled with :extension:`BlockArguments`.
+ See :ref:`More liberal syntax for function arguments <block-arguments>`
+ for the full details.
+
+- Underscores in numeric literals (e.g. ``1_000_000``), enabled with
+ :extension:`NumericUnderscores`.
+ See :ref:`Numeric underscores <numeric-underscores>`
+ for the full details.
+
Compiler
~~~~~~~~
diff --git a/docs/users_guide/glasgow_exts.rst b/docs/users_guide/glasgow_exts.rst
index 6442818..e2d2033 100644
--- a/docs/users_guide/glasgow_exts.rst
+++ b/docs/users_guide/glasgow_exts.rst
@@ -525,11 +525,8 @@ instance, the binary integer literal ``0b11001001`` will be desugared into
Hexadecimal floating point literals
-----------------------------------
-.. ghc-flag:: -XHexFloatLiterals
+.. extension:: HexFloatLiterals
:shortdesc: Enable support for :ref:`hexadecimal floating point literals <hex-float-literals>`.
- :type: dynamic
- :reverse: -XNoHexFloatLIterals
- :category:
:since: 8.4.1
@@ -569,11 +566,8 @@ by one bit left (negative) or right (positive). Here are some examples:
Numeric underscores
-------------------
-.. ghc-flag:: -XNumericUnderscores
+.. extension:: NumericUnderscores
:shortdesc: Enable support for :ref:`numeric underscores <numeric-underscores>`.
- :type: dynamic
- :reverse: -XNoNumericUnderscores
- :category:
:since: 8.6.1
@@ -582,12 +576,12 @@ Numeric underscores
GHC allows for numeric literals to be given in decimal, octal, hexadecimal,
binary, or float notation.
-The language extension :ghc-flag:`-XNumericUnderscores` adds support for expressing
+The language extension :extension:`NumericUnderscores` adds support for expressing
underscores in numeric literals.
For instance, the numeric literal ``1_000_000`` will be parsed into
-``1000000`` when :ghc-flag:`-XNumericUnderscores` is enabled.
+``1000000`` when :extension:`NumericUnderscores` is enabled.
That is, underscores in numeric literals are ignored when
-:ghc-flag:`-XNumericUnderscores` is enabled.
+:extension:`NumericUnderscores` is enabled.
See also :ghc-ticket:`14473`.
For example: ::
More information about the ghc-commits
mailing list