Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit 0d0550c

Browse files
committed
Fix crash happening when hyperlinking type family declarations.
1 parent 8071c27 commit 0d0550c

File tree

1 file changed

+1
-0
lines changed
  • haddock-api/src/Haddock/Backends/Hyperlinker

1 file changed

+1
-0
lines changed

haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ decls (group, _, _, _) = concatMap ($ group)
135135
typ (GHC.L _ t) = case t of
136136
GHC.DataDecl name _ defn _ ->
137137
[decl name] ++ concatMap con (GHC.dd_cons defn)
138+
GHC.FamDecl fam -> pure . decl $ GHC.fdLName fam
138139
_ -> pure . decl $ GHC.tcdLName t
139140
fun term = case cast term of
140141
(Just (GHC.FunBind (GHC.L sspan name) _ _ _ _ _ :: GHC.HsBind GHC.Name))

0 commit comments

Comments
 (0)