The case of the missing module

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

The case of the missing module

ihope
In the Haddock source, there's the following line:

import Paths_haddock ( getDataDir )

Paths_haddock doesn't seem to be anywhere inside the Haddock
distribution, and a Google search doesn't turn up any useful results.
Where can I find this thing?
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: The case of the missing module

Neil Mitchell
Hi,

> import Paths_haddock    ( getDataDir )

Haddock requires to be built with Cabal (which generates this module),
and as far as I can remember, its a Cabal that isn't released
anywhere. When I did some work on haddock I commented this out, and
made getDataDir return an empty list and then made sure to set the -l
flag (I think) and was able to work around this.

Of course, the "solution" is to get Cabal working. I broke Cabal long
ago, but you might have more luck.

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: The case of the missing module

Simon Marlow-5
Neil Mitchell wrote:

>
>>import Paths_haddock    ( getDataDir )
>
>
> Haddock requires to be built with Cabal (which generates this module),
> and as far as I can remember, its a Cabal that isn't released
> anywhere. When I did some work on haddock I commented this out, and
> made getDataDir return an empty list and then made sure to set the -l
> flag (I think) and was able to work around this.
>
> Of course, the "solution" is to get Cabal working. I broke Cabal long
> ago, but you might have more luck.

Haddock builds fine with the Cabal included in GHC 6.4.2, BTW.

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

Re: The case of the missing module

Sven Panne
In reply to this post by ihope
Am Sonntag, 16. April 2006 03:41 schrieb ihope:
> In the Haddock source, there's the following line:
>
> import Paths_haddock ( getDataDir )
>
> Paths_haddock doesn't seem to be anywhere inside the Haddock
> distribution, and a Google search doesn't turn up any useful results.
> Where can I find this thing?

As mentioned in a previous mail, Haddock is now fully cabalized. The module
mentioned above is automatically generated by Cabal.

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