Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NoImplicitPrelude to buildTypeScript #9988

Merged
merged 1 commit into from May 14, 2024

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 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
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
51 checks passed
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.

None yet

5 participants