aboutsummaryrefslogtreecommitdiff
path: root/html-test/src/Bug1067B.hs
Commit message (Collapse)AuthorAgeFilesLines
* Fallback to `hiDecl` when `extractDecl` failsAlec Theriault2020-04-211-0/+4
Sometimes, the declaration being exported is a subdecl (for instance, a record accessor getting exported at the top-level). For these cases, Haddock has to find a way to produce some synthetic sensible top-level declaration. This is done with `extractDecl`. As is shown by #1067, this is sometimes impossible to do just at a syntactic level (for instance when the subdecl is re-exported). In these cases, the only sensible thing to do is to try to reify a declaration based on a GHC `TyThing` via `hiDecl`.