diff options
author | Ömer Sinan Ağacan <omeragacan@gmail.com> | 2016-07-01 10:11:48 +0000 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-07-21 13:30:47 +0200 |
commit | cdc81a1b73bd4d1b330a32870d4369e1a2af3610 (patch) | |
tree | e03c999a9b829e0d57f675db6fafc994735ed4a0 /haddock-api/src/Haddock/Backends/Xhtml/Utils.hs | |
parent | 008e61d0c4b10713751c2a1de4958acc75367396 (diff) |
Add support for unboxed sums
Diffstat (limited to 'haddock-api/src/Haddock/Backends/Xhtml/Utils.hs')
-rw-r--r-- | haddock-api/src/Haddock/Backends/Xhtml/Utils.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/haddock-api/src/Haddock/Backends/Xhtml/Utils.hs b/haddock-api/src/Haddock/Backends/Xhtml/Utils.hs index 391bb50c..a8b4a4ec 100644 --- a/haddock-api/src/Haddock/Backends/Xhtml/Utils.hs +++ b/haddock-api/src/Haddock/Backends/Xhtml/Utils.hs @@ -20,7 +20,7 @@ module Haddock.Backends.Xhtml.Utils ( (<+>), (<=>), char, keyword, punctuate, - braces, brackets, pabrackets, parens, parenList, ubxParenList, + braces, brackets, pabrackets, parens, parenList, ubxParenList, ubxSumList, arrow, comma, dcolon, dot, darrow, equals, forallSymbol, quote, promoQuote, hsep, vcat, @@ -177,6 +177,10 @@ ubxParenList :: [Html] -> Html ubxParenList = ubxparens . hsep . punctuate comma +ubxSumList :: [Html] -> Html +ubxSumList = ubxparens . hsep . punctuate (toHtml " | ") + + ubxparens :: Html -> Html ubxparens h = toHtml "(#" +++ h +++ toHtml "#)" |