Building haddock when accessing data files from package code
Hugo Pacheco
hpacheco at gmail.com
Fri Nov 28 09:25:24 EST 2008
I don't know if I got the ideia.I have always built before and always got
the error:
$ runhaskell Setup.lhs configure
$ runhaskell Setup.lhs build
$ runhaskell Setup.lhs haddock
..
Setup.lhs: can't find source for module Paths_module
Thanks,
hugo
On Fri, Nov 28, 2008 at 2:17 PM, Duncan Coutts
<duncan.coutts at worc.ox.ac.uk>wrote:
> On Fri, 2008-11-28 at 11:59 +0000, Hugo Pacheco wrote:
> > Hi all,
> >
> >
> > When creating a cabal package that contains module that import
> > Paths_<mybraryname> (as tutored
> > in
> http://www.haskell.org/cabal/release/latest/doc/users-guide/authors.html#paths-module),
> haddock complains that it cannot find such module, since it is generated
> automatically by cabal:
> >
> >
> > $ runhaskell Setup.lhs haddock
> > ...
> > Setup.lhs: can't find source for module Paths_GHood
>
> > How do I tell haddock to ignore such module?
> > Should this be handled in the Setup.lhs file? I am using the default
> > Simple file.
>
> The bug is that these auto-generated modules are not generated as part
> of the haddock command. The workaround is to build first. The ticket is:
>
> http://hackage.haskell.org/trac/hackage/ticket/396
>
> It should be a simple fix for a new Cabal hacker. Now is a good chance
> to get involved! :-)
>
> Duncan
>
>
--
www.di.uminho.pt/~hpacheco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/libraries/attachments/20081128/bce0dc56/attachment.htm
More information about the Libraries
mailing list