One of the most annoying parts of hacking on Termonad is interacting with the haskell-gi libraries. This is no fault of the libraries in question, they are only a thin wrapper around the underlying GTK libraries.
The underlying GTK libraries are mostly IO-based and procedural. It is hard to come up with good, testable code when relying on those libraries.
It would be nice to use a library that lets us write more high-level declarative code.
One library to look into for this is
The goal for making this transition to
(I guess some sort of FRP-based library might work as well, but I don't know of a good one for the haskell-gi ecosystem.)
The text was updated successfully, but these errors were encountered:
Very cool! Ping me if you have any questions around
By the way, it aims to be complete, but some widgets are really hard to automatically make declarative. Thus, it's not a complete declarative layer over gi-gtk at the moment. As "workaround", I plan on providing building blocks for easily creating declarative wrappers around the imperative APIs (called "Custom Widgets").