Bridging the GUI gap with reactive values and relations
Perez, Ivan and Nilsson, Henrik (2015) Bridging the GUI gap with reactive values and relations. In: 2015 ACM SIGPLAN Symposium on Haskell (Haskell '15), 3-4 Sept 2015, Vancouver, Canada.
Official URL: http://dl.acm.org/citation.cfm?doid=2804302.2804316
There are at present two ways to write GUIs for functional code. One is to use standard GUI toolkits, with all the benefits they bring in terms of feature completeness, choice of platform, conformance to platform-specific look-and-feel, long-term viability, etc. However, such GUI APIs mandate an imperative programming style for the GUI and related parts of the application. Alternatively, we can use a functional GUI toolkit. The GUI can then be written in a functional style, but at the cost of foregoing many advantages of standard toolkits that often will be of critical importance. This paper introduces a light-weight framework structured around the notions of reactive values and reactive relations . It allows standard toolkits to be used from functional code written in a functional style. We thus bridge the gap between the two worlds, bringing the advantages of both to the developer. Our framework is available on Hackage and has been been validated through the development of non-trivial applications in a commercial context, and with different standard GUI toolkits.
Actions (Archive Staff Only)