-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data-Files cabal directive should support directories #713
Comments
(Imported comment by @dcoutts on 2010-08-02) I think we should discuss this with users a bit first. The point of the existing rather limited support for globbing is to avoid accidentally picking up more files than was intended (e.g. hidden or generated files). By limiting it to files with a common extension this risk is greatly reduced. Perhaps we could make it explicit by only doing recursive copy for directories that are listed in the data-files field with a trailing directory slash, e.g. data-files: graphics/ |
(Imported comment by @ezyang on 2010-08-09) I will note, for whatever it's worth, that this design policy has lead me to write scripts that do regular style globbing and convert it into something I can place in my Cabal file. :-) |
(Imported comment by cygnus on 2010-08-09) I would support a trailing slash option. |
(Imported comment by @dcoutts on 2010-08-10) See also #794. |
@hdgarrood Yes, @dcoutts refers to http://hackage.haskell.org/trac/hackage/ticket/794 . Cross-references got mixed up during the trac -> github import. |
Having I would support using a standard globbing mechanism in place of the current one, which also seems to have some odd corner cases. (#2030) |
Halcyon supports declaring additional See Haskell Language for an example of declaring static website content as data files. |
Tihs is either superceded by (or supercedes) #784 . Can we please close one of them? EDIT: Actually, it's superceded. Glob syntax allows for directories (recursively) via "foo/*/" |
OK, closing this one. |
(Imported from Trac #722, reported by cygnus on 2010-08-02)
It should be possible to use the Data-Files directive to include whole directories (recursively) in source distributions. In many cases it's impossible or cumbersome to list all of the files one would like to install, and it seems to me that nobody should have to do that if what they really mean is, "install everything in that-data-dir/."
In implementation terms, this doesn't strike me as too tricky; after the wildcard parsing that already happens, detect whether the files to be copied are in fact directories and copy them recursively as such.
I'm more than willing to hack on this.
The text was updated successfully, but these errors were encountered: