aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Backends/LaTeX.hs
diff options
context:
space:
mode:
authorAdam Sandberg Eriksson <adam@sandbergericsson.se>2015-07-03 15:57:06 +0200
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2015-07-07 23:22:21 +0100
commit53c47c6fc6cdaa5084b36ea6ba8320a460fa7106 (patch)
tree6aac8121e33aaddc932b71b64a924cd82028c5b9 /haddock-api/src/Haddock/Backends/LaTeX.hs
parent553c719236972f3a1d445146352ec94614979b63 (diff)
StrictData: print correct strictness marks
Diffstat (limited to 'haddock-api/src/Haddock/Backends/LaTeX.hs')
-rw-r--r--haddock-api/src/Haddock/Backends/LaTeX.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/haddock-api/src/Haddock/Backends/LaTeX.hs b/haddock-api/src/Haddock/Backends/LaTeX.hs
index e1090a0e..86a6909b 100644
--- a/haddock-api/src/Haddock/Backends/LaTeX.hs
+++ b/haddock-api/src/Haddock/Backends/LaTeX.hs
@@ -823,8 +823,11 @@ pp_hs_context cxt unicode = parenList (map (ppType unicode) cxt)
ppBang :: HsBang -> LaTeX
-ppBang HsNoBang = empty
-ppBang _ = char '!' -- Unpacked args is an implementation detail,
+ppBang HsStrict = char '!'
+ppBang (HsUnpack {}) = char '!'
+ppBang (HsSrcBang _ _ (Just True)) = char '!'
+ppBang (HsSrcBang _ _ (Just False)) = char '~'
+ppBang _ = empty
tupleParens :: HsTupleSort -> [LaTeX] -> LaTeX