Using the AnimationFrame things requires an import of the GHCJS.Foreign.Callback to use the OnBlocked data type, exported by the seemingly unrelated (in hiearchy) module GHCJS.Foreign.Callback.
There's also the same data type in GHCJS.Concurrent, which I think is really the place that it should be in (or at least canonically exported from).
Todo:
Remove OnBlocked from GHCJS.Foreign.Callback, use the one from GHCJS.Concurrent instead
Decide whether GHCJS.Foreign.Callback and JavaScript.Web.AnimationFrame should re-export OnBlocked.
Using the AnimationFrame things requires an import of the
GHCJS.Foreign.Callback
to use theOnBlocked
data type, exported by the seemingly unrelated (in hiearchy) moduleGHCJS.Foreign.Callback
.There's also the same data type in
GHCJS.Concurrent
, which I think is really the place that it should be in (or at least canonically exported from).Todo:
OnBlocked
fromGHCJS.Foreign.Callback
, use the one fromGHCJS.Concurrent
insteadGHCJS.Foreign.Callback
andJavaScript.Web.AnimationFrame
should re-exportOnBlocked
.