Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
use gi-gtk-declarative #79
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.)
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").