[commit: ghc] master: Allow per-argument documentation on pattern synonym signatures (287a405)
git at git.haskell.org
git at git.haskell.org
Mon Jul 3 22:58:37 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/287a40564a7024b55daf0b063683ce889f8a18d9/ghc
>---------------------------------------------------------------
commit 287a40564a7024b55daf0b063683ce889f8a18d9
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
>---------------------------------------------------------------
287a40564a7024b55daf0b063683ce889f8a18d9
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 603ac27..672b6f7 100644
--- a/compiler/parser/Parser.y
+++ b/compiler/parser/Parser.y
@@ -1394,7 +1394,7 @@ where_decls :: { Located ([AddAnn]
,sL1 $3 (snd $ unLoc $3)) }
pattern_synonym_sig :: { LSig GhcPs }
- : '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