-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
- put everything in a single module
Nottui(easily aliasable/openable). I'll refer to it asUIfrom now on. - re-export
LwdasUI.IncrementalandLwd_seqasUI.Seq UI.Syntaxwithlet$and other bind/map fromLwd, along with UI helpers like<|>or<->for h/v concatenation of UI elements- everything returns lwd-wrapped UI elements. I think
UI.t = UI.Pure.t Lwd.twould make a lot of sense (whereUI.Pure.tcan be the base type for non-reactive elements). Most functions will work on lwd-wrapped things. - commonly used functionality is re-exported at toplevel in
UI, for exampleUI.sfor a string widget,UI.space,UI.sprintf,hcat(list),hjoin(binary horizontal concat),<|>(alias for hcat) - widgets can have their own submodule with all the bells and whistles (maybe as objects?), + a toplevel function to build them easily (like
UI.Scrollablefor the whole thing, along with aUI.scrollable : …function for the common case) - re-export
prettyasUI.Pretty(can be just a module alias for lightweightness)
minor quibbles
flexneeds more testing (but would be useful to keep)scrollablecurrently doesn't take as much space as it can, so only the used part is actually scrollable
also see #5 for a bigger wishlist 🐴 🎅 🎁
Metadata
Metadata
Assignees
Labels
No labels