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

Support renaming all fields and constructors #19

Open
8 of 16 tasks
leostera opened this issue Feb 28, 2024 · 0 comments
Open
8 of 16 tasks

Support renaming all fields and constructors #19

leostera opened this issue Feb 28, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@leostera
Copy link
Member

leostera commented Feb 28, 2024

We'd like to support renaming all the fields in a record or variant constructor names with a type-level attribute.

This issue tracks the different kinds of renaming supported:

Record Fields

  • lowercase – myField becomes myfield
  • UPPERCASE – my_field becomes MY_FIELD
  • camelCase – my_field becomes myField
  • PascalCase – my_field becomes MyField
  • snake_case– my_field becomes my_field
  • SCREAMING_SNAKE_CASE– my_field becomes MY_FIELD
  • kebab_case– my_field becomes my-field
  • SCREAMING_KEBAB_CASE– my_field becomes MY-FIELD

Constructors

  • lowercase – My_variant becomes my_variant
  • UPPERCASE – My_variant becomes MYVARIANT
  • camelCase – My_variant becomes myVariant
  • PascalCase –My_variant becomes MyVariant
  • snake_case– My_variant becomes my_variant
  • SCREAMING_SNAKE_CASE – My_variant becomes MY_VARIANT
  • kebab_case– My_variant becomes My-variant
  • SCREAMING_KEBAB_CASE– My_variant becomes MY-VARIANT
@leostera leostera added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Feb 28, 2024
@leostera leostera changed the title Support renaming fields Support renaming all fields and constructors Feb 28, 2024
@leostera leostera changed the title Support renaming all fields and constructors Support renaming all fields in records Mar 4, 2024
@leostera leostera changed the title Support renaming all fields in records Support renaming all fields and constructors Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant