purescript-dom used to come with an explanation of its purpose:
The API isn’t primarily intended for “human consumption”, but instead aims to provide functions and types that match up with the interfaces described in the DOM4, HTML5, and CSSOM specifications, with a minimal amount of additional opinion as to how they should be implemented in PureScript.
After the repos changed, that note was lost. The spirit of purescript-web-dom is the same. Which is to say, it’s not easy to use.
purescript-dom-classy exists to make things easier. It hasn’t been updated to 0.12.0 yet.
Seems like there are two viable options:
- Follow @chexxor’s example
-
Raise an issue with
purescript-dom-classy about updating for 0.12.0.
The latter helps everyone
.