https://github.com/srid/miso-viso
Playing with abstract visualizations in Miso. Work in Progress.
https://github.com/srid/miso-viso
haskell miso svg visualization
Last synced: 7 months ago
JSON representation
Playing with abstract visualizations in Miso. Work in Progress.
- Host: GitHub
- URL: https://github.com/srid/miso-viso
- Owner: srid
- Created: 2017-08-09T19:28:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-28T15:28:38.000Z (almost 8 years ago)
- Last Synced: 2025-04-07T12:11:12.289Z (10 months ago)
- Topics: haskell, miso, svg, visualization
- Language: Haskell
- Homepage:
- Size: 7.81 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Visualization in Miso
## Development
For faster edit-compile-run cycle it is recommended to to use `GHCJSi` as follows.
First, enter the Nix configured shell environment:
```
nix-shell -A env
```
Then, enter the GHCJSi shell:
```
cabal configure --ghcjs
cabal repl
```
GHCJSi starts up a web server. You should immediately connect to it from the web browser via http://localhost:6400/
From the GHCJSi shell--and everytime `Main.js` changes--recompile and send the new code to the browser:
```
> import Miso.Dev # Once
> :r
> clearBody >> main
```
The UI in the web browser will now update automatically with the new code. Happy hacking!
## Production
This application can be built for production and run as follows:
```
nix-build
warp -d result/bin/app.jsexe/ # Port 3000
```