Skip to content

doc: Setup.hs is optional for build-type Simple - #12656

Open
mroncode wants to merge 1 commit into
haskell:masterfrom
mroncode:docs/setup-hs-optional
Open

mroncode wants to merge 1 commit into
haskell:masterfrom
mroncode:docs/setup-hs-optional

Conversation

@mroncode

Copy link
Copy Markdown

Documentation-only change for #12654.

The package guide lists Setup.hs as a required file, but for build-type: Simple:

  • cabal check does not require it (checkSetupExists Simple = return ())
  • cabal build does not need it
  • cabal sdist does not generate one

This PR documents Setup.hs as optional for Simple, and required for Hooks, Configure and Custom. It also notes that a Setup.hs that is present must still match the standard content.

This does not change cabal sdist behavior. Whether it should add the default Setup.hs, like the Cabal library's prepareTree does, is left to the discussion in #12654.

Refs #12654

The package guide listed Setup.hs as a required file, but for build-type: Simple cabal does not need it, cabal check does not require it (checkSetupExists exempts Simple) and cabal init no longer creates one. Document that it is optional for Simple and required for Hooks, Configure and Custom.

Refs haskell#12654
@mroncode
mroncode marked this pull request as ready for review November 24, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant