And I also wasn’t keen on going back to callback based UI programming. I never was satisfied with the look and feel of GTK based applications. provide a modern look and feel e.g. material design.use functional reactive programming instead of event handler callbacks.provide a multi-platform (Windows, MacOS, Linux) standalone GUI application.So I had to make up my mind about choosing a GUI library with an optimal fit to my needs: Threepenny to the rescueĪ few weeks back I was asked to write a standalone GUI version of an existing Haskell commandline app. So even though I’m a Haskell enthusiast I tended to agree with Gabriel Gonzales “Immature” rating of Haskell’s support for standalone GUI Applications. But it’s also quite dated and the imperative programming model is not an ideal fit for a purely functional language like Haskell. There are some large applications based on gtk2hs or its successor gi-gtk-hs like the Haskell IDE Leksah. Gtk2hs is a Haskell library that allows to write platform-independent GUI applications based on the GTK library. The GUI examples in Real World Haskell are based on gtk2hs. Since reading The GUI chapter in Real World Haskell I had the impression that Haskell does not excel in GUI programming. Prerequisites: - Git - Haskell Stack - Nodejs Immature support for writing Desktop Applications in Haskell ? Git clone cd ThreepennyElectron stack init npm install npm start
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |