I want to copy a folder full of assets next to my executable during distribution. How can I represent this in the .cabal file (or, alternatively, the Setup.hs)?
Directory structure:
root/
dist/ -- Generated by cabal
src/
assets/
List them in your extra-source-files or data-files field. More information is available in the cabal manual, especially the section on retrieving data files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With