aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Convert.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2013-01-14 17:10:27 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2013-01-14 17:10:27 +0000
commit266a20afd2d27f28bbb62839ebc3f70bd83bfcce (patch)
treed25476cf66207a1f8adfdc0415309a1409345dfb /src/Haddock/Convert.hs
parent5b406e30a7d6e3b594d67b9ee883337c50d3d384 (diff)
Track change to HsBang type
Diffstat (limited to 'src/Haddock/Convert.hs')
-rw-r--r--src/Haddock/Convert.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Haddock/Convert.hs b/src/Haddock/Convert.hs
index b4cf86f0..71c68bf0 100644
--- a/src/Haddock/Convert.hs
+++ b/src/Haddock/Convert.hs
@@ -216,9 +216,9 @@ synifyDataCon use_gadt_syntax dc = noLoc $
linear_tys = zipWith (\ty bang ->
let tySyn = synifyType WithinType ty
src_bang = case bang of
- HsUnpack {} -> HsBang True
- HsStrict -> HsBang False
- _ -> bang
+ HsUnpack {} -> HsUserBang (Just True) True
+ HsStrict -> HsUserBang (Just False) True
+ _ -> bang
in case src_bang of
HsNoBang -> tySyn
_ -> noLoc $ HsBangTy bang tySyn