diff options
author | Adam Sandberg Eriksson <adam@sandbergericsson.se> | 2015-07-14 21:01:01 +0200 |
---|---|---|
committer | Adam Sandberg Eriksson <adam@sandbergericsson.se> | 2015-08-09 23:01:05 +0200 |
commit | 62f3a12863121fa5b6c2787185e62cfa3f44bdd6 (patch) | |
tree | 56cfb6502b0b6ce76af8427249f35ce1ebf0f294 /haddock-api/src/Haddock/Backends/Xhtml/Decl.hs | |
parent | 3436273f6e87d9358f6c23ad5b6b2838ce573892 (diff) |
HsBang is split into HsSrcBang and HsImplBang
With recent changes in GHC handling of strictness annotations in Haddock
is simplified.
Diffstat (limited to 'haddock-api/src/Haddock/Backends/Xhtml/Decl.hs')
-rw-r--r-- | haddock-api/src/Haddock/Backends/Xhtml/Decl.hs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/haddock-api/src/Haddock/Backends/Xhtml/Decl.hs b/haddock-api/src/Haddock/Backends/Xhtml/Decl.hs index 21ef167b..b2b6f904 100644 --- a/haddock-api/src/Haddock/Backends/Xhtml/Decl.hs +++ b/haddock-api/src/Haddock/Backends/Xhtml/Decl.hs @@ -768,9 +768,7 @@ ppDataHeader _ _ _ _ = error "ppDataHeader: illegal argument" -------------------------------------------------------------------------------- -ppBang :: HsBang -> Html -ppBang HsStrict = toHtml "!" -ppBang (HsUnpack {}) = toHtml "!" +ppBang :: HsSrcBang -> Html ppBang (HsSrcBang _ _ SrcStrict) = toHtml "!" ppBang (HsSrcBang _ _ SrcLazy) = toHtml "~" ppBang _ = noHtml |