Skip to content
Snippets Groups Projects
Select Git revision
1 result Searching

obelisk-playground

Jean-Paul Calderone's avatar
Jean-Paul Calderone authored
The key insight here is that the type of _frontend_body does not bring enough
constraints along to use performEvent, even though the execution
context (native, anyway) can satisfy those constraints.

Splitting the code out into a separate function made the compiler error much
more understandable for me and it just became a matter of adding the necessary
typeclass constraints.

It remains to be seen whether this approach actually gives you something that
will work on Android, though.
dbe30d24
History