How to expose cabal-generated installation paths?

Hi, please pardon me if this question is not appropriate for this forum or if there is a document that answers my question already. I had no better idea but to ask here and I'd be happy to receive pointers into the right direction. Recently, I received a patch for the FuncMP package [1] that exposes the Cabal-generated "Paths_funcmp" module. It appears, however, that Cabal doesn't find that module when running the 'haddock' target: | Creating dist/doc/html/funcmp (and its parents) | Preprocessing library funcmp-1.2... | Running hscolour for funcmp-1.2... | Creating dist/doc/html/funcmp/src (and its parents) | /usr/local/bin/HsColour -print-css -odist/doc/html/funcmp/src/hscolour.css | cabal-setup: can't find source for module Paths_funcmp The complete log is available at [2]. Does anyone know, by any chance, a simple way to remedy that problem? Peter [1] http://hackage.haskell.org/cgi-bin/hackage-scripts/package/funcmp [2] http://hackage.haskell.org/packages/archive/funcmp/1.2/logs/failure/ghc-6.10

On Mon, 2008-11-24 at 12:33 +0100, Peter Simons wrote:
Hi,
please pardon me if this question is not appropriate for this forum or if there is a document that answers my question already. I had no better idea but to ask here and I'd be happy to receive pointers into the right direction.
Recently, I received a patch for the FuncMP package [1] that exposes the Cabal-generated "Paths_funcmp" module. It appears, however, that Cabal doesn't find that module when running the 'haddock' target:
| Creating dist/doc/html/funcmp (and its parents) | Preprocessing library funcmp-1.2... | Running hscolour for funcmp-1.2... | Creating dist/doc/html/funcmp/src (and its parents) | /usr/local/bin/HsColour -print-css -odist/doc/html/funcmp/src/hscolour.css | cabal-setup: can't find source for module Paths_funcmp
The complete log is available at [2].
Does anyone know, by any chance, a simple way to remedy that problem?
Do cabal build first. It's filed as ticket: http://hackage.haskell.org/trac/hackage/ticket/396 It should not be hard to fix if you're looking for a task to get started in Cabal hacking. Duncan

Hi Duncan,
It's filed as ticket: http://hackage.haskell.org/trac/hackage/ticket/396
I believe that I can work around this problem by making Paths_funcmp a private module, i.e. one that is not exported. Thank you for the explanation. Take care, Peter
participants (2)
-
Duncan Coutts
-
Peter Simons