Skip to content

Argument order in Reacts.react #108

@dpwiz

Description

@dpwiz

Currently it is:

react entity old new token = ...

I propose moving the old and new to the end, so they could be matched more easily by \cases in 9.4:

react _entity token = \cases
  Nothing (Just new) -> created token
  (Just old) (Just new) -> updated token
  (Just old) Nothing -> deleted token
  Nothing Nothing -> pure () -- idk when this happens

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions