[Hackage] #252: haddock document generation fails for executables when a preprocessors is needed
#252: haddock document generation fails for executables when a preprocessors is needed ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: HEAD Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.2 Platform: Linux | ----------------------------+----------------------------------------------- I'm coming to think I'm the only one who tries to generate haddock documentation for non library packages...;) When running "haddock --executables" with a package that has a module which is using a file extension to call a preprocessor, Haddock.getModulePaths will die with: Setup.lhs: can't find source for module moduleName If I add a library stanza to the cabal file, the problem is solved. This issue affects HEAD only. I must confess I do not understand why this happens, and I'm puzzled. But I don't know the cabal source enough, so I'll leave this to the expert ones. Cheers, Andrea Rossato ps: maybe even the short summary could be edited to better describe the problem. An English native speaker could be quite helpful with this...:-) -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/252> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
#252: haddock document generation fails for executables when a preprocessors is needed ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Linux ----------------------------+----------------------------------------------- Comment (by guest): At least I think I got the problem: preprocessSources will put the preprocessed source in dist/build in case of a library, and in dist/build/exeName/exeName-tmp/ in case of an executable. But Haddock.haddock will always search dist/build. Hence the call of 'die' in getModulePaths. Cheers, ar ps: I must confess I don't get the reason for this difference so my instinct would be to change preprocessSources (this is why I'm not attaching any patch). -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/252#comment:1> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
#252: haddock document generation fails for executables when a preprocessors is needed ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: closed Priority: normal | Milestone: Component: Cabal library | Version: HEAD Severity: normal | Resolution: fixed Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Linux ----------------------------+----------------------------------------------- Changes (by duncan): * status: new => closed * resolution: => fixed Comment: Fixed: {{{ Tue Jun 10 00:36:09 BST 2008 Duncan Coutts <duncan@haskell.org> * Fix pre-processing for haddock and executables Now look in the right place to find the pre-processed source files belonging to executables. Fixes ticket #252. }}} -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/252#comment:2> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
participants (1)
-
Hackage