diff options
author | alexbiehl <alex.biehl@gmail.com> | 2017-07-03 16:53:10 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-07-03 18:58:10 -0400 |
commit | 287a40564a7024b55daf0b063683ce889f8a18d9 (patch) | |
tree | e93043125556ce3420a03ea2bf72aa7fe1d0648d /compiler | |
parent | 84d6831ae67ed7a543f7b14f04fc569e924ce1dd (diff) | |
download | haskell-287a40564a7024b55daf0b063683ce889f8a18d9.tar.gz |
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
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/parser/Parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/parser/Parser.y b/compiler/parser/Parser.y index 603ac27cf4..672b6f74ab 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] } |