-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Web app improvements #81
Comments
Thanks for putting this together. It seems like there were a lot of good comments on reddit about the webview! https://www.reddit.com/r/haskell/comments/iss9vo/ann_prettysimple_40/ |
Further work on this (by me, anyway) is blocked on dmjio/miso#639. |
Finally resolved (EDIT: actually while half the issue there is solved, namely that GHCJS is back in Nixpkgs, what's really changed is that I have a Linux machine running Nix). I've pushed some package bumps etc. The cabal-based build is crashing upon first page load. I'll have to investigate that (EDIT: only on Firefox - looks a lot like ghcjs/jsaddle#64, which has been fixed but I think Miso is stuck on an old version...). But the deployed version is actually working with CSS correctly loaded, for the first time in two years! |
@georgefst Wow, https://georgefst.github.io/pretty-simple/ is really nice! I'd love if you sent a PR to get this all into the pretty-simple repo. Or at least add this online page to the README of |
#116. I'll try to tidy this up in the coming days. |
This shouldn't have been closed. I think it's down to GitHub's parser seeing "close" on #116. Anyway I've added another bullet point, about using GHC's WASM backend. |
The web branch contains Miso code for generating the app currently deployed at https://georgefst.github.io/pretty-simple. This is really just a proof of concept. Places to improve:
OutputOptions
. I was unsure how to set the right HTML attributes, without them being constantly refreshed and causing flickering. Probably worth asking on the Miso Slack channel. See this unused commit.StringOutputStyle
dropdown (see pPrint prints unexpected characters for unprintable string contents #64).ghc-wasm-meta
, but we can only (easily?) use it to get a development shell, rather than an actual package derivation.Note that, for development, everything can be built with just Cabal, which will use jsaddle to run a web server. Use
nix-build
to compile to JavaScript, using GHCJS.Inspiration:
The text was updated successfully, but these errors were encountered: