[commit: ghc] master: Add ghc-flag directory for -XPatternGuards (e764ede)

git at git.haskell.org git at git.haskell.org
Fri Mar 11 12:27:32 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/e764ede35f5c5b2c41e1670c6a9b831e0a70cd17/ghc

>---------------------------------------------------------------

commit e764ede35f5c5b2c41e1670c6a9b831e0a70cd17
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Fri Mar 11 10:41:30 2016 +0100

    Add ghc-flag directory for -XPatternGuards
    
    Reviewers: austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1987


>---------------------------------------------------------------

e764ede35f5c5b2c41e1670c6a9b831e0a70cd17
 docs/users_guide/glasgow_exts.rst | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/docs/users_guide/glasgow_exts.rst b/docs/users_guide/glasgow_exts.rst
index dd714ec..f46a6d6 100644
--- a/docs/users_guide/glasgow_exts.rst
+++ b/docs/users_guide/glasgow_exts.rst
@@ -385,11 +385,15 @@ instance, the binary integer literal ``0b11001001`` will be desugared into
 Pattern guards
 --------------
 
-Pattern guards (Glasgow extension) The discussion that follows is an
-abbreviated version of Simon Peyton Jones's original
-`proposal <http://research.microsoft.com/~simonpj/Haskell/guards.html>`__.
-(Note that the proposal was written before pattern guards were
-implemented, so refers to them as unimplemented.)
+.. ghc-flag:: -XPatternGuards
+
+   Enable pattern matches in guards.
+
+The discussion that follows is an abbreviated version of Simon Peyton Jones's
+original `proposal
+<http://research.microsoft.com/~simonpj/Haskell/guards.html>`__. (Note that the
+proposal was written before pattern guards were implemented, so refers to them
+as unimplemented.)
 
 Suppose we have an abstract data type of finite maps, with a lookup
 operation: ::



More information about the ghc-commits mailing list