[Haskell-cafe] cabal haddock hpc, exposed modules?

Greg Fitzgerald garious at gmail.com
Tue Oct 27 17:33:34 EDT 2009


I have a cabal package that defines a few dozen modules, and I'm
hoping to generate documentation and code coverage for all modules
without listing each module explicitly.

currently my .cabal includes:

library
  exposed-modules:
   Language.Idl.Data,
   Language.Idl.Merge,
   Language.Idl.Parser,
   ...lots more...


my Setup.hs includes an explicit system call to hpc:

     exec "hpc" ["markup"
                     , "--include=Language.Idl.Data"
                     , "--include=Language.Idl.Merge"
                     , "--include=Language.Idl.Parser"
                     ...all the same files as above...
                     ]

Questions:
1) Is there a way to create haddock docs for /all/ modules, instead of
just the ones listed by 'exposed-modules'?
2) Is there a way to query cabal for the list of modules?  Or by
chance has hpc recently been integrated with cabal?

Thanks,
Greg


More information about the Haskell-Cafe mailing list