[commit: ghc] ghc-8.6: users-guide: Fix code-block layout for QuantifiedConstraints (14e5864)

git at git.haskell.org git at git.haskell.org
Wed Sep 19 18:26:29 UTC 2018


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

On branch  : ghc-8.6
Link       : http://ghc.haskell.org/trac/ghc/changeset/14e5864006000c1a07eecd1d3fa41a6d278a2ea8/ghc

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

commit 14e5864006000c1a07eecd1d3fa41a6d278a2ea8
Author: Takenobu Tani <takenobu.hs at gmail.com>
Date:   Mon Sep 17 16:47:02 2018 +0200

    users-guide: Fix code-block layout for QuantifiedConstraints
    
    Summary:
    Fix code-block layout for QuantifiedConstraints.
    
    [ci skip]
    
    Test Plan: build
    
    Reviewers: bgamari, monoidal
    
    Reviewed By: monoidal
    
    Subscribers: rwbarton, carter
    
    Differential Revision: https://phabricator.haskell.org/D5121
    
    (cherry picked from commit 43967c0c7d2d0110cfc5f9d64a7dab3a3dda8953)


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

14e5864006000c1a07eecd1d3fa41a6d278a2ea8
 docs/users_guide/glasgow_exts.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/users_guide/glasgow_exts.rst b/docs/users_guide/glasgow_exts.rst
index b917f31..1b8ce47 100644
--- a/docs/users_guide/glasgow_exts.rst
+++ b/docs/users_guide/glasgow_exts.rst
@@ -9713,7 +9713,7 @@ This idea is very old; see Seciton 7 of `Derivable type classes <https://www.mic
 Syntax changes
 ----------------
 
-`Haskell 2010 <https://www.haskell.org/onlinereport/haskell2010/haskellch10.html#x17-18000010.5>`_ defines a ``context`` (the bit to the left of ``=>`` in a type) like this ::
+`Haskell 2010 <https://www.haskell.org/onlinereport/haskell2010/haskellch10.html#x17-18000010.5>`_ defines a ``context`` (the bit to the left of ``=>`` in a type) like this
 
 .. code-block:: none
 
@@ -9723,7 +9723,7 @@ Syntax changes
     class ::= qtycls tyvar
             |  qtycls (tyvar atype1 ... atypen)
 
-We to extend ``class`` (warning: this is a rather confusingly named non-terminal symbol) with two extra forms, namely precisely what can appear in an instance declaration ::
+We to extend ``class`` (warning: this is a rather confusingly named non-terminal symbol) with two extra forms, namely precisely what can appear in an instance declaration
 
 .. code-block:: none
 
@@ -9736,9 +9736,9 @@ That is the only syntactic change to the language.
 
 Notes:
 
-- Where GHC allows extensions instance declarations we allow exactly the same extensions to this new form of ``class``.  Specifically, with :extension:`ExplicitForAll` and :extension:`MultiParameterTypeClasses` the syntax becomes ::
+- Where GHC allows extensions instance declarations we allow exactly the same extensions to this new form of ``class``.  Specifically, with :extension:`ExplicitForAll` and :extension:`MultiParameterTypeClasses` the syntax becomes
 
-.. code-block:: none
+  .. code-block:: none
 
     class ::= ...
            | [forall tyavrs .] context => qtycls inst1 ... instn



More information about the ghc-commits mailing list