Layoutz lets you snap together compositional String elements: and now comes w/ a runtime to animate these layouts (much like a flipbook), handle keyboard inputs, fire off side effects (basically what you’d expect from en Elm-style runtime)
Lmk how it feels, if there are rough edges or missing primitives. Many thanks!
22 Likes
I had fun with toying with it for a CLI tool of mine, already. That being said I have not used the more advanced “runtime” features yet, so that’s the next thing on the list.
@mattlianje While I understand your desire to have very few dependencies, might I interest you in using text? It is after all a core library and comes shipped with GHC installations, and its API is very nice. The fact that it’s split from base is unfortunate but should not discourage you from depending on it!
7 Likes
@tchoutri very interesting - thanks for putting “text” on my radar. Generally I suppose the “state” being rendered by the layoutz runtime loop is relatively small (just a String … layout
) but can definitely see text being interesting if what we are rendering gets rather large.
Thanks for taking a peek at layoutz! Replied to your issue on gh - you are giving me some ideas. Exciting!
1 Like