Open georgefst opened 4 years ago
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 https://github.com/dmjio/miso/issues/639.
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 https://github.com/ghcjs/jsaddle/issues/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 pretty-simple
!
I'd love if you sent a PR to get this all into the pretty-simple repo.
https://github.com/cdepillabout/pretty-simple/pull/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 #64).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: