Well, I am using cabal-install version 0.6.0 using version 1.6.0.1 of the Cabal library The suggested trick (adding dist/build/autogen to Hs-Source-Dirs) solved the problem. Here goes the important part of my .cabal file: Data-files: GHood.jar Build-type: Simple Cabal-Version: >=1.2 Flag splitBase Description: Choose the new smaller, split-up base package. Library Hs-Source-Dirs: src, dist/build/autogen Build-Depends: base, haskell98 if flag(splitBase) Build-Depends: base >= 3, array >= 0.1, pretty >= 1.0 else Build-Depends: base < 3 exposed-modules: Debug.Observe other-modules: Paths_GHood extensions: ScopedTypeVariables Rank2Types TypeSynonymInstances On Fri, Nov 28, 2008 at 3:37 PM, Duncan Coutts <duncan.coutts@worc.ox.ac.uk>wrote:
On Fri, 2008-11-28 at 14:25 +0000, Hugo Pacheco wrote:
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
Ok, that is supposed to work. We'll need more details, eg the Cabal lib version and the .cabal file you're using.
There was a bug in this area in Cabal-1.4.x: http://hackage.haskell.org/trac/hackage/ticket/187
Duncan
-- www.di.uminho.pt/~hpacheco