Update examples to use new JS backend syntax#740
Update examples to use new JS backend syntax#740sevanspowell wants to merge 4 commits intodmjio:masterfrom
Conversation
- Javascript conventions have changed slightly with the GHC Javascript backend (from GHCJS). - See https://github.com/ghcjs/ghcjs-base/pull/135/files. - Update foreign imports to match these new conventions, so compiling with GHC Javascript backend works.
- Update canvas2d to work with new JS backend syntax.
|
Thanks for doing this, in order to ensure it works we'll need to update miso's nix scripts to use the new ghcjs. @stepcut has pointed out that |
|
Thanks for your work on the project! I'll do my best to help out with that process. |
|
Can confirm this fixes build failures: NixOS/nixpkgs#380737 |
|
Probably want to do a hackage release with this and #752 |
- import GHCJS.Foreign.Callback
+ import GHC.JS.Foreign.CallbackWill break GHCJS builds, at the very least we should use CPP to make this a backwards compatible change. Same for the FFI declarations. |
|
Merged in #757 @alexfmpe @sevanspowell . @alexfmpe I'll get a release out for NixOS/nixpkgs#380737 |
foreign imports. These need to be updated to the new GHC JS backend syntax in order to work with the new GHC JS backend.