paf31 / purescript-thermite

A simple PureScript wrapper for React
MIT License
350 stars 55 forks source link

Use Coroutine/CoTransformer for PerformAction API #62

Closed paf31 closed 8 years ago

paf31 commented 8 years ago

@pkamenarsky I've reverted back to the Producer (s -> s) approach, for the reasons given in your PR. Could you please have a look at this, and let me know what you think?

If this looks okay, I'll make a 1.0 release.

Thanks!

pkamenarsky commented 8 years ago

Looks good, but not having an async get primitive is a fundamental problem in my opinion. Maybe it would be better to wait and think about the free monad approach a bit more before committing to Producer and then still maybe going back to free later.

paf31 commented 8 years ago

Can you please describe a case where you need get and not just modify? Thanks.

paf31 commented 8 years ago

@pkamenarsky Could you take a look at the latest version please? I think it is the best of both worlds:

Please let me know what you think. If this seems okay, I'll make a release.

paf31 commented 8 years ago

@pkamenarsky Ping. Do you have time to go over this? I'd like to get a 1.0 release out soon if possible.

Thanks :)

pkamenarsky commented 8 years ago

Looks good! I think this is a good compromise for now, if we come up with a better abstraction we can still change it later on.

paf31 commented 8 years ago

Thanks!