[Hackage] #306: can't figure out how to use data-files

Hackage trac at galois.com
Tue Jun 24 17:29:23 EDT 2008


#306: can't figure out how to use data-files
----------------------------+-----------------------------------------------
  Reporter:  claus          |        Owner:           
      Type:  defect         |       Status:  closed   
  Priority:  normal         |    Milestone:           
 Component:  Cabal library  |      Version:  HEAD     
  Severity:  normal         |   Resolution:  duplicate
  Keywords:                 |   Difficulty:  normal   
Ghcversion:  6.9            |     Platform:           
----------------------------+-----------------------------------------------
Comment (by claus):

 Thanks, that works! But since `Paths_p` was generated behind my back, it
 seems odd that I have to list it myself, especially since a non-empty
 `data-files` field makes no sense at all without it (no dependency chasing
 needed for this one).

 I'd suggest to (a) mention this in the user guide and (b) add
 `Paths_package` implicitly if the cabal file has `data-files` (not much
 sense giving an error message if the fix is uniquely determined).

 Btw, having `--prefix` not apply to all dirs is very counter-intuitive.

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


More information about the cabal-devel mailing list