[Haddock] [haddock] #214: html themes are searched even if no html output has been requested

haddock haddock at projects.haskell.org
Sat Sep 29 08:23:28 BST 2012


#214: html themes are searched even if no html output has been requested
---------------------------+------------------------------------------------
Reporter:  lars_e_krueger  |       Owner:      
    Type:  defect          |      Status:  new 
Priority:  trivial         |   Milestone:  2.13
 Version:  2.12.0          |    Keywords:      
---------------------------+------------------------------------------------
 The offending line is

 src/Main.hs, line 230
 themes   <- getThemes libDir flags >>= either bye return

 If <libdir>/html does not exists, getDirectoryContents (as called in
 getDirectoryItems, src/Haddock/Backends/XHtml/Themes.hs) fails with an
 IOError that is not caught.

 Fix: move the line into each case for html output (e.g. after lines 232,
 238, 245)

 This bug is present in the ghc 7.6, and 7.4.2 branches, hence I attribute
 it to the 2.12 version.

 Severity is rather low. Few users will experience that I assume. One
 scenario is that you install a package locally without documentation and
 then generate e.g. latex docu.

-- 
Ticket URL: <http://trac.haskell.org/haddock/ticket/214>
haddock <http://www.haskell.org/haddock>
Haddock, The Haskell Documentation Tool


More information about the Haddock mailing list