Skip to content

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