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

Don't use record notation for single-field datacons in tactics #1456

Merged
merged 3 commits into from
Mar 1, 2021

Conversation

isovector
Copy link
Collaborator

@isovector isovector commented Feb 28, 2021

Today @TOTBWF was dogfooding Wingman, and complained that the changes introduced in #1356 would cause the unnatural idiom:

blah :: a -> Reader r a
blah a = Reader { runReader = \_ -> a }

which uses the record-builder notation for a single-field data con. Gross.

This PR fixes that so that single-field records never use record constructor notation.

Copy link
Member

@Ailrun Ailrun left a comment

Choose a reason for hiding this comment

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

Thanks

@Ailrun Ailrun added the merge me Label to trigger pull request merge label Feb 28, 2021
@mergify mergify bot merged commit eff69a7 into haskell:master Mar 1, 2021
@isovector isovector deleted the no-single-record branch March 1, 2021 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants