From 843c42c4179526a2ad3526e4c7d38cbf4d50001d Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sun, 9 Mar 2014 07:43:39 +0100 Subject: Reorder topDeclElem to move the source/wiki links to the top They appear in the same position due to the float: right attribute but now they're always at the top of the box instead of at the bottom. --- src/Haddock/Backends/Xhtml/Layout.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Haddock/Backends/Xhtml/Layout.hs b/src/Haddock/Backends/Xhtml/Layout.hs index dbc043be..9a0e461d 100644 --- a/src/Haddock/Backends/Xhtml/Layout.hs +++ b/src/Haddock/Backends/Xhtml/Layout.hs @@ -192,7 +192,7 @@ declElem = paragraph ! [theclass "src"] -- it adds a source and wiki link at the right hand side of the box topDeclElem :: LinksInfo -> SrcSpan -> [DocName] -> Html -> Html topDeclElem ((_,_,sourceMap), (_,_,maybe_wiki_url)) loc names html = - declElem << (html <+> srcLink <+> wikiLink) + declElem << (srcLink <+> wikiLink <+> html) where srcLink = case Map.lookup origPkg sourceMap of Nothing -> noHtml -- cgit v1.2.3