I am trying to figure out how to create a GUI with GHCJS-DOM. I look at a welcome example of the world https://github.com/ghcjs/ghcjs-dom-hello , which is trivial. Adding new nodes is simple. What I cannot do and cannot work from the library documentation (only signatures) is to add some events. For example, add a new node to the body with a mouse click.
I want to avoid using JS libraries like jQuery because I want the GUI to be portable between GHC (webkit) and GHCJS.
Ultimately, I would like to express the mouse event as an FRP event, but I will agree one step at a time.
If anyone has any recommendations, I will be very grateful. I have used haskell for several years now, but this is my first venture in the DOM.
dom haskell ghcjs
Ollieb
source share