cdepillabout / pretty-simple

pretty-printer for Haskell data types that have a Show instance
https://hackage.haskell.org/package/pretty-simple
BSD 3-Clause "New" or "Revised" License
243 stars 29 forks source link

Web app improvements #81

Open georgefst opened 4 years ago

georgefst commented 4 years ago

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:

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:

cdepillabout commented 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/

georgefst commented 3 years ago

Further work on this (by me, anyway) is blocked on https://github.com/dmjio/miso/issues/639.

georgefst commented 2 years ago

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!

cdepillabout commented 2 years ago

@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!

georgefst commented 2 years ago

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.

georgefst commented 1 month ago

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.