paf31 / purescript-event

The Event type, extracted from purescript-behaviors
BSD 3-Clause "New" or "Revised" License
23 stars 18 forks source link

Applicative instance does not separate concurrent events #1

Open paf31 opened 6 years ago

paf31 commented 6 years ago

From https://github.com/paf31/purescript-behaviors/issues/28#issue-277348392, if we have an event e, then e <*> e results in two events at each time point at which e fires, with the first of each pair reporting an "inconsistent" state.

Whether this is a bug or not is debatable, and I think to fix it would require some sweeping changes, but I want to keep track of it here.

safareli commented 5 years ago

@paf31 do you see any possible fix here?