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

tweak: make edit.namespace not render record accessors #5068

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

mitchellwrosen
Copy link
Member

Overview

Fixes #5034

This PR tweaks edit.namespace to not render record accessors of type declarations that it is rendering.

Test coverage

I've added a transcript test in edit-namespace.md

@mitchellwrosen mitchellwrosen marked this pull request as ready for review June 10, 2024 20:05
Comment on lines +16 to +17
-- Shouldn't render record accessors
unique type Foo = { bar : Nat, baz : Nat }
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Comment on lines +31 to +36
Foo.bar : Foo -> Nat
Foo.bar.modify : (Nat ->{g} Nat) -> Foo ->{g} Foo
Foo.bar.set : Nat -> Foo -> Foo
Foo.baz : Foo -> Nat
Foo.baz.modify : (Nat ->{g} Nat) -> Foo ->{g} Foo
Foo.baz.set : Nat -> Foo -> Foo
Copy link
Contributor

Choose a reason for hiding this comment

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

It'll be great once we have first-class fields and these aren't listed here either!

@aryairani aryairani merged commit 433be00 into trunk Jun 10, 2024
20 checks passed
@aryairani aryairani deleted the 24-05-30-edit-namespace-no-record-accessors branch June 10, 2024 20:22
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.

edit.namespace should not render field accessor definitions
2 participants