Hopefully this code is fairly self-contained, it should be easy to adapt to any typed language where the event is a threaded type parameter (forall ev. Html ev).
This will be slow-ish at runtime. If this is observable and unacceptable, there are plenty of remedies available. Swapping out the runtime Array for an ST-based array builder, that should pretty much do it.
All current codebases compile fairly quickly with one exception: those Int and Double types defined somewhere in manor.
Hopefully this code is fairly self-contained, it should be easy to adapt to any typed language where the event is a threaded type parameter (
forall ev. Html ev
).This will be slow-ish at runtime. If this is observable and unacceptable, there are plenty of remedies available. Swapping out the runtime
Array
for an ST-based array builder, that should pretty much do it.All current codebases compile fairly quickly with one exception: those Int and Double types defined somewhere in manor.
! @charleso @sphvn /jury approved @charleso