diff options
author | Ben Gamari <ben@smart-cactus.org> | 2015-07-27 13:16:07 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-07-27 13:16:07 +0200 |
commit | cf2c2d006bbd54c0852f82dccfcc23ec66d33894 (patch) | |
tree | e8be28e29e8d68ffaed73ba12586d8b427e34ac9 /haddock-api/src/Haddock/Backends/LaTeX.hs | |
parent | 553c719236972f3a1d445146352ec94614979b63 (diff) | |
parent | 5eb0785cde60997f072c3bdfefaf8c389c96d42e (diff) |
Merge pull request #422 from adamse/adamse-D1033
Merge for GHC D1033
Diffstat (limited to 'haddock-api/src/Haddock/Backends/LaTeX.hs')
-rw-r--r-- | haddock-api/src/Haddock/Backends/LaTeX.hs | 7 |
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..d85d75da 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 _ _ SrcStrict) = char '!' +ppBang (HsSrcBang _ _ SrcLazy) = char '~' +ppBang _ = empty tupleParens :: HsTupleSort -> [LaTeX] -> LaTeX |