haskell / haskell/cabal

No way to specify other-modules for custom Setup section

Open
#3,984 3 comments 0 reactions 0 assignees View on GitHub
Cabal: custom Cabal: stanza/custom-setup meta: easy old-milestone: ⊥ type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

I don't know if this is affecting anyone, but there isn't any way to specify `other-modules` for a Setup script (e.g., if it spans multiple modules). A reasonable workaround to make sure the script does get added to the sdist tarball is to put it in extra-source-files, but if we ever switch to doing per-component recompilation avoidance, the lack of accurate dependency information on Setup files will prevent us from knowing when to rebuild a Setup script when you edit NOT the Setup.hs file itself.

I don't plan on fixing this unless someone actually runs into it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.