Helper to generate data-files cabal field
Haskell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
data
src/Language/Haskell
test
.gitignore
LICENSE
README.md
Setup.hs
data-files-gen.cabal
stack.yaml

README.md

data-files-gen

This little utility helps you generate the data-files Cabal field if you have lots of files to include.

You pass it the directory you want to include, and it will generate the proper inclusions lines according to Cabal's rules. So for each file extension, it will generate dir/*.ext, and it will recurse into sub directories.

You can exclude some directories by name via the -d option (you can use it multiple times), and exclude extensions via the -e option.

You can add a specific number of spaces at the start of each generated line with the -i option.