aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Convert.hs
diff options
context:
space:
mode:
authorAdam Sandberg Eriksson <adam@sandbergericsson.se>2015-07-03 15:57:06 +0200
committerMatthew Pickering <matthewtpickering@gmail.com>2015-12-14 15:14:06 +0000
commitf6c317bf8828378549d48d68f118fd9f0f919f82 (patch)
tree475dded756bdb148455774d718dca64bcd4bbaa8 /haddock-api/src/Haddock/Convert.hs
parentbf4041f408623536bd9684586f5736d5ca7f12dd (diff)
StrictData: print correct strictness marks
Diffstat (limited to 'haddock-api/src/Haddock/Convert.hs')
-rw-r--r--haddock-api/src/Haddock/Convert.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/haddock-api/src/Haddock/Convert.hs b/haddock-api/src/Haddock/Convert.hs
index dd577319..e8ed148c 100644
--- a/haddock-api/src/Haddock/Convert.hs
+++ b/haddock-api/src/Haddock/Convert.hs
@@ -270,13 +270,13 @@ synifyDataCon use_gadt_syntax dc =
linear_tys = zipWith (\ty bang ->
let tySyn = synifyType WithinType ty
src_bang = case bang of
- HsUnpack {} -> HsSrcBang Nothing (Just True) True
- HsStrict -> HsSrcBang Nothing (Just False) True
+ HsUnpack {} -> HsSrcBang Nothing (Just True) (Just True)
+ HsStrict -> HsSrcBang Nothing (Just False) (Just True)
+ HsLazy -> HsSrcBang Nothing Nothing Nothing
_ -> bang
in case src_bang of
- HsNoBang -> tySyn
+ (HsSrcBang _ Nothing Nothing) -> tySyn
_ -> noLoc $ HsBangTy bang tySyn
- -- HsNoBang never appears, it's implied instead.
)
arg_tys (dataConSrcBangs dc)
field_tys = zipWith (\field synTy -> noLoc $ ConDeclField