Skip to content

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

Closed
@DZakh

Description

@DZakh
@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions