[Hackage] #277: add data-dir field

Hackage trac at galois.com
Fri May 9 10:10:20 EDT 2008

#277: add data-dir field
  Reporter:  guest            |        Owner:       
      Type:  enhancement      |       Status:  new  
  Priority:  normal           |    Milestone:       
 Component:  Cabal library    |      Version:  HEAD 
  Severity:  minor            |     Keywords:       
Difficulty:  easy (<4 hours)  |   Ghcversion:  6.8.2
  Platform:                   |  
 Cabal currently looks for data files to install relative to the source
 directory, giving the package author no possibility to move them into
 their own directory without cluttering up the cabal file (you end up
 writing things like {{{data-files: data/foo, data/bar, data/foobar}}}) and
 the source (where you'll have to include the {{{"data/"}}} prefix in all
 calls to {{{getDataFileName}}}).

 The proposal is to add a {{{data-dir}}} field to the package configuration
 that specifies a single path which is used as a prefix for all data files
 in the source directory. The location of the installed files is not
 affected by {{{data-dir}}}.

  * It's impossible to change {{{data-dir}}} to take a list of paths
 without breaking the {{{Paths_foo}}} module interface.
  * installation of data files will have to copy source files from a
 different location, ditto for sdist
  * installed packages don't change. In particular the {{{Paths_foo}}}
 module doesn't change.

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/277>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list