News for hackers. Stuff that matters.
Re:Generate semi-dynamic UIs with Haskell by chrissoundz on Monday March 30, 2020 @10:47AM (#22728418)
It's not clear to me what you're trying to show? Are you saying the later examples look more complex?
Re:Generate semi-dynamic UIs with Haskell by whateveracct on Monday March 30, 2020 @10:53AM (#22728484)
My guess: The latter examples look unfamiliar (looks like Haskell) while the first example looks familiar to the general eye (looks like any PL)

The things being compared don't even have the same purpose so idt comparing them even makes sense /shrug

Re:Generate semi-dynamic UIs with Haskell by dmitriid on Monday March 30, 2020 @10:59AM (#22728529)
Of course they do. Of course they are.

The simplest code change turns the code in to a monadic/functor soup.

Re:Generate semi-dynamic UIs with Haskell by agentultra on Monday March 30, 2020 @11:09AM (#22728608)
... and if you program in Haskell that's exactly what you want. Programming with these abstractions is common and well supported in Haskell.
Re:Generate semi-dynamic UIs with Haskell by whateveracct on Monday March 30, 2020 @11:14AM (#22728643)
Given what the examples are doing (describing inputs) I don't see how you solve it ergonomically without higher kinded types, which in turn leads to functors etc.