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

Online code playground #26

Open
reubenharry opened this issue Jan 26, 2023 · 2 comments
Open

Online code playground #26

reubenharry opened this issue Jan 26, 2023 · 2 comments

Comments

@reubenharry
Copy link
Owner

A longer term goal. It would be really nice if the code snippets in the docs were runnable online and/or if HLS or Hackage style code highlighting was available.

With the advent of WASM and JS backends, this is something to think about.

@cdsmith
Copy link
Collaborator

cdsmith commented Jan 26, 2023

You're welcome to look into using https://code.world/haskell for this. It's unfortunately on GHC 8.6 now. I look forward to updating it to a modern GHC as soon as the JS or WASM backends are stable. It's also got a pretty large selection of packages available, listed at https://github.com/google/codeworld/blob/master/codeworld-available-pkgs/codeworld-available-pkgs.cabal#L13

@reubenharry
Copy link
Owner Author

That would be cool! Do you have any thoughts on how one would go about embedding this into a MkDocs page?

Separately, I should probably add a link to a nice CodeWorld example early on in the docs. The Fourier example is so neat!

(Btw, on a separate note, I'm delighted to see both dunai and monad-bayes as included packages - there's some reactive style code I've been working on that I might try to port, so I can share it more easily: https://github.com/reubenharry/rhine-bayes-examples#real-time-bayesian-agents)

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

No branches or pull requests

2 participants