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...:-)