aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Theriault <alec.theriault@gmail.com>2018-06-05 13:53:25 -0700
committerAlexander Biehl <alexbiehl@gmail.com>2018-06-05 22:53:25 +0200
commit9a7f539d0c20654ff394f2ff99836412a6844df1 (patch)
tree6fb86207d512840ef16c8e5a4329893d74899d1e
parent14110449370a77195093dd3f610ab869ab9e36cf (diff)
Extract docs from strict/unpacked constructor args (#839)
This fixes #836.
-rw-r--r--haddock-api/src/Haddock/Interface/Create.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/haddock-api/src/Haddock/Interface/Create.hs b/haddock-api/src/Haddock/Interface/Create.hs
index 2c91f142..78b5c36d 100644
--- a/haddock-api/src/Haddock/Interface/Create.hs
+++ b/haddock-api/src/Haddock/Interface/Create.hs
@@ -472,6 +472,7 @@ conArgDocs con = case getConArgs con of
RecCon _ -> go 1 ret
where
go n (HsDocTy _ _ (L _ ds) : tys) = M.insert n ds $ go (n+1) tys
+ go n (HsBangTy _ _ (L _ (HsDocTy _ _ (L _ ds))) : tys) = M.insert n ds $ go (n+1) tys
go n (_ : tys) = go (n+1) tys
go _ [] = M.empty