Ticket #102 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

building haddock for executables wont CPP

Reported by: newsham@… Owned by: ijones
Priority: normal Milestone:
Component: Cabal library Version: 1.1.6
Severity: normal Keywords: haddock
Cc: Difficulty: easy (<4 hours)
GHC Version: 6.6 Platform: Linux

Description

When running Setup.hs haddock for an executable, the sources are not passed through the preprocessor before running haddock (as they are for libraries). This means it is not possible to build docs for files with CPP or TH (without building the files as a library).

Attachments

ticket-102 Download (21.9 KB) - added by zunino@… 6 years ago.
patch

Change History

Changed 6 years ago by ross@…

Haddock generates interface documentation. That's only appropriate for libraries, isn't it?

Changed 6 years ago by zunino@…

patch

Changed 6 years ago by duncan

  • status changed from new to closed
  • resolution set to fixed

Looks like this patch has been applied.

Note: See TracTickets for help on using tickets.