[commit: ghc] master: Comments only (25597a9)

git at git.haskell.org git at git.haskell.org
Mon Jun 11 15:29:36 UTC 2018


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

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

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

commit 25597a97174990b49b4005497473b417888a7a64
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Mon Jun 11 13:55:10 2018 +0100

    Comments only


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

25597a97174990b49b4005497473b417888a7a64
 compiler/basicTypes/Avail.hs | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/compiler/basicTypes/Avail.hs b/compiler/basicTypes/Avail.hs
index 673d2fb..779f770 100644
--- a/compiler/basicTypes/Avail.hs
+++ b/compiler/basicTypes/Avail.hs
@@ -80,7 +80,7 @@ datatype like
 
 gives rise to the AvailInfo
 
-  AvailTC T [T, MkT] [FieldLabel "foo" False foo],
+  AvailTC T [T, MkT] [FieldLabel "foo" False foo]
 
 whereas if -XDuplicateRecordFields is enabled it gives
 
@@ -98,8 +98,9 @@ multiple distinct fields with the same label. For example,
 
 gives rise to
 
-  AvailTC F [F, MkFInt, MkFBool]
-    [FieldLabel "foo" True $sel:foo:MkFInt, FieldLabel "foo" True $sel:foo:MkFBool].
+  AvailTC F [ F, MkFInt, MkFBool ]
+            [ FieldLabel "foo" True $sel:foo:MkFInt
+            , FieldLabel "foo" True $sel:foo:MkFBool ]
 
 Moreover, note that the flIsOverloaded flag need not be the same for
 all the elements of the list.  In the example above, this occurs if
@@ -107,8 +108,9 @@ the two data instances are defined in different modules, one with
 `-XDuplicateRecordFields` enabled and one with it disabled.  Thus it
 is possible to have
 
-  AvailTC F [F, MkFInt, MkFBool]
-    [FieldLabel "foo" True $sel:foo:MkFInt, FieldLabel "foo" False foo].
+  AvailTC F [ F, MkFInt, MkFBool ]
+            [ FieldLabel "foo" True $sel:foo:MkFInt
+            , FieldLabel "foo" False foo ]
 
 If the two data instances are defined in different modules, both
 without `-XDuplicateRecordFields`, it will be impossible to export



More information about the ghc-commits mailing list