[Hackage] #187: Paths_pkgname module is hard to use in a library

Hackage trac at galois.com
Mon Apr 14 16:40:06 EDT 2008


#187: Paths_pkgname module is hard to use in a library
----------------------------+-----------------------------------------------
  Reporter:  duncan         |        Owner:                 
      Type:  defect         |       Status:  closed         
  Priority:  normal         |    Milestone:  Cabal-1.4      
 Component:  Cabal library  |      Version:  1.2.2.0        
  Severity:  normal         |   Resolution:  fixed          
  Keywords:                 |   Difficulty:  easy (<4 hours)
Ghcversion:  6.8.1          |     Platform:                 
----------------------------+-----------------------------------------------
Comment (by guest):

 There's still a problem for sdist:
 sdist shouldn't care about Paths_pkgname because it's installation
 dependent, but if you have Paths_pkgname in Other-modules sdist tries to
 include that module in the tarball, and so fails to create the package
 because it can't find the file.

 two ways to solve this might be:
 (i) add Paths_pkgname automatically during build, install and haddock.
 (ii) filter Paths_pkgname out in sdist.

 but maybe the cleanest solution is to have a dedicated field in the
 package description?

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/187#comment:3>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list