Skip to content

@deriving(accessors) generates curried functions in uncurried mode #6492

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

Closed
DZakh opened this issue Nov 23, 2023 · 1 comment · Fixed by #6687
Closed

@deriving(accessors) generates curried functions in uncurried mode #6492

DZakh opened this issue Nov 23, 2023 · 1 comment · Fixed by #6687

Comments

@DZakh
Copy link
Member

DZakh commented Nov 23, 2023

@deriving(accessors)
  type msg =
    | ShowToast(string, toast)
    | EnterToast(string)
    | ExitToast(string)
    | RemoveToast(string)

This way it's not possible to pass a showToast to a function callback. I'm personally not a fun of @deriving(accessors), so I'll remove the usage of it, but still I'd like to let you know about the problem.

@JonoPrest
Copy link
Contributor

Hey @DZakh, noting this can be closed since #6687

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 a pull request may close this issue.

3 participants