[commit: ghc] ghc-8.2: Allow per-argument documentation on pattern synonym signatures (dafa0df)
git at git.haskell.org
git at git.haskell.org
Tue Jul 4 00:16:44 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-8.2
Link : http://ghc.haskell.org/trac/ghc/changeset/dafa0dfad16dff51943a76c83c66f9814ca9a9ee/ghc
>---------------------------------------------------------------
commit dafa0dfad16dff51943a76c83c66f9814ca9a9ee
Author: alexbiehl <alex.biehl at gmail.com>
Date: Mon Jul 3 16:53:10 2017 -0400
Allow per-argument documentation on pattern synonym signatures
haddock-2.18 supports user defined pattern synonym signatures so this
seems like a welcomed addition.
Reviewers: austin, bgamari, mpickering
Reviewed By: bgamari, mpickering
Subscribers: rwbarton, thomie, mpickering
Differential Revision: https://phabricator.haskell.org/D3699
(cherry picked from commit 287a40564a7024b55daf0b063683ce889f8a18d9)
>---------------------------------------------------------------
dafa0dfad16dff51943a76c83c66f9814ca9a9ee
compiler/parser/Parser.y | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler/parser/Parser.y b/compiler/parser/Parser.y
index 542b996..a1135d3 100644
--- a/compiler/parser/Parser.y
+++ b/compiler/parser/Parser.y
@@ -1374,7 +1374,7 @@ where_decls :: { Located ([AddAnn]
,sL1 $3 (snd $ unLoc $3)) }
pattern_synonym_sig :: { LSig RdrName }
- : 'pattern' con_list '::' sigtype
+ : 'pattern' con_list '::' sigtypedoc
{% ams (sLL $1 $> $ PatSynSig (unLoc $2) (mkLHsSigType $4))
[mj AnnPattern $1, mu AnnDcolon $3] }
More information about the ghc-commits
mailing list