Elm programmers: are there higher-order abstractions you use to compose modules without manually defining parent product types and `update`?
Conversation
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.”
I suspect (but haven’t yet shown) that structural typing a la clojure.spec could be used to form composition abstractions.
1
Yes! That was my intention with my Swifty-elm-arch sample.
1
1
Show replies
Replying to
The compiler helps manage the incidental complexity, but it still feels weird to me after months.
1
Just a nagging suspicion that computers are too smart for me to need to do what I'm doing.
1
Show replies
sorry for (probably) getting you further down the rabbit hole, but have you ever looked into attribute grammars?
1
3
oooooo
1
1
Show replies
Replying to
there's a nice article by in The Monad Reader from a few years ago with an intro + references.
1



