I've got a library I'm building that includes a few very large strings using Template Haskell and file-embed.
I'm wondering, how do I ensure these files are included when I run Cabal dist?
The are all in a folder called core, but some are within subdirectories of core.
Cabal has an extra-source-files
field precisely for these kinds of scenarios:
Extra-source-files: relative/path/to/my/embedded-file.txt
Quoting the Cabal User Guide :
extra-source-files : filename list
A list of additional files to be included in source distributions built with setup sdist .
As with
data-files
it can use a limited form of wildcards in file names.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.