Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create helloworld combining HTML generation and Yampa #34

Closed
ivanperez-keera opened this issue Oct 22, 2017 · 12 comments
Closed

Create helloworld combining HTML generation and Yampa #34

ivanperez-keera opened this issue Oct 22, 2017 · 12 comments
Assignees
Milestone

Comments

@ivanperez-keera
Copy link
Owner

Idea: create a Yampa program that generates an HTML file that changes (for instance, a text box that always shows the current mouse coordinate).

Prior knowledge of blaze-html or some other library to generate HTML would be useful.

@jhmcstanton
Copy link

This isn't strictly what you're looking for, but there is a project to combine Yampa and HTML canvas elements, yampa-canvas

@ivanperez-keera
Copy link
Owner Author

ivanperez-keera commented Oct 29, 2018

This is actually great, @jhmcstanton . Thanks!!! I'll add it to Yampa's front page :)

@mgajda
Copy link

mgajda commented Oct 8, 2019

Is it GHCjs project?

@ivanperez-keera
Copy link
Owner Author

Yeap, that'd be nice. Something that allows people to compile with GHCjs and get a running page.

@jhmcstanton
Copy link

@mgajda if you're refering to yampa-canvas, its not a ghcjs project. It uses a small js runtime and COMET to interact with the browser from a haskell server.

@ivanperez-keera
Copy link
Owner Author

Yeap, that'd be nice. Something that allows people to compile with GHCjs and get a running page.

My bad. I read this without the context and thought @mgajda was asking if this issue was meant to be GHCjs based.

@ivanperez-keera
Copy link
Owner Author

Also relevant to this ticket is this branch of haskanoid: https://github.com/ivanperez-keera/haskanoid/blob/ghcjs/

@ivanperez-keera
Copy link
Owner Author

ivanperez-keera commented Oct 7, 2023

Would anyone be able to help this effort by pointing to a current guide to get started with GHC and web, or preparing a minimal example (doesn't even have to use Yampa).

@ivanperez-keera
Copy link
Owner Author

I'm happy to say that @AntanasKal has provided a suitable hello world. See #268 for details.

We need to modify the README to point to that repo.

@ivanperez-keera ivanperez-keera self-assigned this Dec 3, 2023
@ivanperez-keera ivanperez-keera added this to the 0.14.6 milestone Dec 3, 2023
ivanperez-keera added a commit that referenced this issue Dec 3, 2023
Document the existence of an example that uses GHC's new WebAssembly
backend to create an interactive Yampa animation.
ivanperez-keera added a commit that referenced this issue Dec 3, 2023
Document the existence of an example that uses GHC's new WebAssembly
backend to create an interactive Yampa animation.
ivanperez-keera added a commit that referenced this issue Dec 3, 2023
Document the existence of an example that uses GHC's new WebAssembly
backend to create an interactive Yampa animation.
@ivanperez-keera
Copy link
Owner Author

ivanperez-keera commented Dec 3, 2023

Yay!!! We've finally closed this and now have a hello world with docker to use webassembly. This also means we've just closed an issue that's been unsolved for 6 years!

Massive thanks to @AntanasKal for the push to get that done. And just in time for the next release!

This will open many possibilities for the Yampa project.

@mgajda
Copy link

mgajda commented Dec 4, 2023

@ivanperez-keera Would love to write next app with WebAssembly hosting of Yampa.

Can you please release recipe of Docker image for building for Web?

@ivanperez-keera
Copy link
Owner Author

See https://github.com/AntanasKal/yampa-wasm-example#using-docker-to-build-and-deploy. That little example is deployed with Github Pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants