Haddock/Cabal/base bug?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Haddock/Cabal/base bug?

Neil Mitchell
Hi,

I want to generate documentation for the base libraries, so I darcs
get the base libraries, and a very basic (the sample default)
Setup.hs, and try:

runhaskell Setup configure
runhaskell Setup build

Pretty much no luck, but I'll leave that for someone else to sort out :)

runhaskell Setup haddock

First task is to remove errors about -fno-implicit-bangs, which are in
a few files, relatively easy to do.

After that it gets quite far (invokes haddock a fair bit) before failing with:

haddock.exe: Main.all_subs_of_qname: unexpected unqual'd name:IOMode

This is on Windows, cabal, base and haddock all fresh from darcs, GHC 6.4.2

Can anyone point out what the problem is, whose fault it is, and what
can be done to fix it?

Thanks

Neil
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: Haddock/Cabal/base bug?

Henning Thielemann

On Sun, 20 Aug 2006, Neil Mitchell wrote:

> Hi,
>
> I want to generate documentation for the base libraries, so I darcs
> get the base libraries, and a very basic (the sample default)
> Setup.hs, and try:
>
> runhaskell Setup configure
> runhaskell Setup build
>
> Pretty much no luck, but I'll leave that for someone else to sort out :)
>
> runhaskell Setup haddock
>
> First task is to remove errors about -fno-implicit-bangs, which are in
> a few files, relatively easy to do.
>
> After that it gets quite far (invokes haddock a fair bit) before failing with:
>
> haddock.exe: Main.all_subs_of_qname: unexpected unqual'd name:IOMode

Sometimes such an error is a Haddock problem, sometimes one of the
'unliterate' procedure in Cabal. Does the problem remain if you start
Haddock manually, maybe on manually "unliterated" modules?
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: Haddock/Cabal/base bug?

Neil Mitchell
Hi

> > haddock.exe: Main.all_subs_of_qname: unexpected unqual'd name:IOMode
>
> Sometimes such an error is a Haddock problem, sometimes one of the
> 'unliterate' procedure in Cabal. Does the problem remain if you start
> Haddock manually, maybe on manually "unliterated" modules?

Base is a bit too big and my shell skills are a bit too weak to try
this out manually. I don't think its a .lhs problem, since the only
.lhs files in base are under GHC, which haddock doesn't index when
built with Cabal for the base. It does seem to invoke the preprocessor
for all the other modules

When I went into haddock and commented out the line that generates
that error, it did work though.

Thanks

Neil
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe