|
|
|
|
|
by rtfeldman
3505 days ago
|
|
> How do you compose update functions If there's shared logic between update functions we extract it into a helper function. That also makes it easier to test. I'm not sure how typeclasses would make composing update functions easier, but in this case we can be concrete. PureScript's Pux library implements the Elm Architecture, and PureScript has typeclasses. Would you mind showing me some Pux code that uses typeclasses to improve the situation you're talking about? |
|
I don't write PureScript, I can't help you there.