aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Convert.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2015-01-08 15:50:22 +0000
committerAustin Seipp <aseipp@pobox.com>2015-01-23 07:10:16 -0600
commitdf0239b587e2a25531962f5b46f715ebb9b09685 (patch)
tree893241add5175b3abfa7fc99ab879724df25e733 /haddock-api/src/Haddock/Convert.hs
parentbf77580eb40fa960b701296ac828372d127a43dd (diff)
Track naming change in DataCon
(cherry picked from commit 04cf63d0195837ed52075ed7d2676e71831e8a0b)
Diffstat (limited to 'haddock-api/src/Haddock/Convert.hs')
-rw-r--r--haddock-api/src/Haddock/Convert.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/haddock-api/src/Haddock/Convert.hs b/haddock-api/src/Haddock/Convert.hs
index b52c3319..ac7f8bd8 100644
--- a/haddock-api/src/Haddock/Convert.hs
+++ b/haddock-api/src/Haddock/Convert.hs
@@ -264,15 +264,15 @@ synifyDataCon use_gadt_syntax dc =
linear_tys = zipWith (\ty bang ->
let tySyn = synifyType WithinType ty
src_bang = case bang of
- HsUnpack {} -> HsUserBang (Just True) True
- HsStrict -> HsUserBang (Just False) True
+ HsUnpack {} -> HsSrcBang (Just True) True
+ HsStrict -> HsSrcBang (Just False) True
_ -> bang
in case src_bang of
HsNoBang -> tySyn
_ -> noLoc $ HsBangTy bang tySyn
-- HsNoBang never appears, it's implied instead.
)
- arg_tys (dataConStrictMarks dc)
+ arg_tys (dataConSrcBangs dc)
field_tys = zipWith (\field synTy -> noLoc $ ConDeclField
[synifyName field] synTy Nothing)
(dataConFieldLabels dc) linear_tys