Allow 'if' for data-files section
Open
cabal-install: cmd/sdist
data-files
re: conditional
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
In the MicroHs cabal file I'd like to say this
```
data-files:
src/runtime/*.c
src/runtime/*.h
if impl(ghc)
data-files:
lib/**/*.hs
lib/**/*.hs-boot
```
But when I tried it, it didn't work. It works in MicroCabal so I've managed to hack around it, but it seems like an obvious thing that should work.
Contributor guide
Research direction
The issue names no repository file or test; start by locating the Cabal handling for data-files and conditional if impl(ghc) sections. Compare the behavior with MicroCabal, then add support for the shown conditional data-files form and verify it with an equivalent Cabal file or existing relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100