rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

@deriving(accessors) generates curried functions in uncurried mode

Open DZakh opened this issue 2 years ago • 0 comments

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

DZakh avatar Nov 23 '23 09:11 DZakh