From 824ffde8ed06ad4f22c765a342aa322d2f27baf0 Mon Sep 17 00:00:00 2001 From: Mark Lentczner Date: Wed, 28 Jul 2010 00:03:12 +0000 Subject: make info block and package bar links be floatable by placing them first in the dom tree --- src/Haddock/Backends/Xhtml.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Haddock/Backends/Xhtml.hs') diff --git a/src/Haddock/Backends/Xhtml.hs b/src/Haddock/Backends/Xhtml.hs index c9eaf71b..6fc0ffeb 100644 --- a/src/Haddock/Backends/Xhtml.hs +++ b/src/Haddock/Backends/Xhtml.hs @@ -167,13 +167,13 @@ bodyHtml doctitle iface themes pageContent = body << [ divPackageHeader << [ - nonEmpty sectionName << doctitle, unordList (catMaybes [ srcButton maybe_source_url iface, wikiButton maybe_wiki_url (ifaceMod `fmap` iface), contentsButton maybe_contents_url, indexButton maybe_index_url - ] ++ [styleMenu themes]) ! [theclass "links"] + ] ++ [styleMenu themes]) ! [theclass "links"], + nonEmpty sectionName << doctitle ], divContent << pageContent, divFooter << paragraph << ( @@ -453,7 +453,7 @@ ppHtmlModule odir doctitle themes bodyHtml doctitle (Just iface) themes maybe_source_url maybe_wiki_url maybe_contents_url maybe_index_url << [ - divModuleHeader << (sectionName << mdl_str +++ moduleInfo iface), + divModuleHeader << (moduleInfo iface +++ (sectionName << mdl_str)), ifaceToHtml maybe_source_url maybe_wiki_url iface unicode ] -- cgit v1.2.3