Conversation

This Tweet was deleted by the Tweet author. Learn more
💭 Bool → checkbox enum w/ ≤ 4 constructors → radio buttons enum w > 4 constructors → pop-up menu String → text field Int/Float → text field with formatter, steppers product → vertically laid out sum → tabs recursive → list view
3
5
I get that newtypes allow different UI variants, but what is that synthesizing and verifying about? That doesn't look like the kind of feature which requires the compiler's involvement, a typeclass would suffice: class UI a where ui :: ParentWidget -> IO (Getter a, Setter a)
1
Show replies
This is me probably over-thinking stuff, and in the mode of a language designer - you could probably do something less fancy in Haskell if you just wanted to use deriving or something.
1
1
Show replies