Elm programmers: are there higher-order abstractions you use to compose modules without manually defining parent product types and `update`?
Conversation
Replying to
I'd love to know about this too. So far it involves a lot of manual labor.
1
I’m trying to evaluate essential v. incidental complexity here, and in general in the pattern of “pass everything down the tree.”
4
2
Show replies
Only thing I’ve see is package.elm-lang.org/packages/deboi
But, the idea of “passing down” (like Redux) is unneeded (1/2)
generally speaking, just write another function.
Nest update functions and use custom child update fns (2/2)
1
This requires creating a sum type over the children and switching to dispatch the updates, though, yes?
1
Show replies
Replying to
1
1
Replying to
I've found the farther I moved from the rigor of those manual defs, the harder my code is to read. So I keep it simple.
1




