Skip to content

Conversation

@sheaf
Copy link
Collaborator

@sheaf sheaf commented May 8, 2024

This allows us to compile Setup.hs without depending on base. In particular, this ensures that a package with build-type: Hooks and a custom setup stanza that does not depend on base successfully compiles.

Tested in PackageTests/SetupHooks/SetupHooksNoBase.


Template B: This PR does not modify behaviour or interface

  • Patch conforms to the coding conventions.
  • Test included.

Copy link
Collaborator

@alt-romes alt-romes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@alt-romes alt-romes requested review from ffaf1 and geekosaur May 8, 2024 10:20
@sheaf sheaf force-pushed the no-implicit-prelude-setup branch from 3750653 to 1404b5b Compare May 8, 2024 10:24
@alt-romes alt-romes added merge me Tell Mergify Bot to merge and removed attention: needs-review labels May 8, 2024
@sheaf sheaf force-pushed the no-implicit-prelude-setup branch from 1404b5b to 912b97e Compare May 8, 2024 11:15
@sheaf sheaf force-pushed the no-implicit-prelude-setup branch 3 times, most recently from 42162d6 to 4e5eb21 Compare May 8, 2024 16:17
@sheaf sheaf added attention: needs-review and removed merge me Tell Mergify Bot to merge labels May 8, 2024
@sheaf sheaf force-pushed the no-implicit-prelude-setup branch 3 times, most recently from 62f71c8 to 536f955 Compare May 8, 2024 17:04
@Mikolaj
Copy link
Member

Mikolaj commented May 8, 2024

@sheaf: would you like a re-review, or do you just signal that the version now in the PR is different than reviewed?

@sheaf
Copy link
Collaborator Author

sheaf commented May 8, 2024

@sheaf: would you like a re-review, or do you just signal that the version now in the PR is different than reviewed?

I'm waiting to see whether this new version passes CI. If it does then I will request re-review, otherwise I will roll it back.

@sheaf sheaf force-pushed the no-implicit-prelude-setup branch 2 times, most recently from b83e978 to 4a84f6c Compare May 9, 2024 09:21
@sheaf sheaf requested review from alt-romes, ffaf1 and geekosaur May 9, 2024 13:26
@sheaf
Copy link
Collaborator Author

sheaf commented May 9, 2024

I'm re-requesting a review. The new change since the first version is that we also stop provisioning a base dependency for Simple setup scripts. We also pass -XNoImplicitPrelude to ensure that user-written stub setup scripts (such as main = defaultMain for build-type: Simple) continue to compile.

@alt-romes alt-romes added merge me Tell Mergify Bot to merge and removed attention: needs-review labels May 9, 2024
@mergify mergify bot added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label May 11, 2024
This allows us to compile Setup.hs without depending on base.
In particular, this ensures that a package with `build-type: Hooks`
and a custom setup stanza that does not depend on base successfully
compiles.

Tested in PackageTests/SetupHooks/SetupHooksNoBase.
@Mikolaj Mikolaj force-pushed the no-implicit-prelude-setup branch from 4a84f6c to 42b8dc1 Compare May 11, 2024 14:40
@mergify mergify bot merged commit 03d9829 into haskell:master May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days merge me Tell Mergify Bot to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants