Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copying a folder into dist/

Tags:

haskell

cabal

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/
like image 307
Clark Gaebel Avatar asked May 18 '26 06:05

Clark Gaebel


1 Answers

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.

like image 81
Daniel Wagner Avatar answered May 21 '26 05:05

Daniel Wagner