[commit: haddock] master: Add support for hyperlinking synonyms in patterns. (b91ee2f)
git at git.haskell.org
git at git.haskell.org
Wed Jul 8 08:42:08 UTC 2015
Repository : ssh://git@git.haskell.org/haddock
On branch : master
Link : http://git.haskell.org/haddock.git/commitdiff/b91ee2f4f0869d1c1076813019ce858c53738042
>---------------------------------------------------------------
commit b91ee2f4f0869d1c1076813019ce858c53738042
Author: Łukasz Hanuszczak <lukasz.hanuszczak at gmail.com>
Date: Wed Jul 1 18:32:19 2015 +0200
Add support for hyperlinking synonyms in patterns.
>---------------------------------------------------------------
b91ee2f4f0869d1c1076813019ce858c53738042
haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs b/haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs
index c41b5e5..8777e26 100644
--- a/haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs
+++ b/haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs
@@ -110,6 +110,8 @@ binds =
pure (sspan, RtkBind name)
(Just (GHC.L _ (GHC.ConPatIn (GHC.L sspan name) recs))) ->
[(sspan, RtkVar name)] ++ everything (<|>) rec recs
+ (Just (GHC.L _ (GHC.AsPat (GHC.L sspan name) _))) ->
+ pure (sspan, RtkBind name)
_ -> empty
rec term = case cast term of
(Just (GHC.HsRecField (GHC.L sspan name) (_ :: GHC.LPat GHC.Name) _)) ->
More information about the ghc-commits
mailing list