2019-06-23 00:30:21 +03:00
|
|
|
# notes.srid.ca
|
2019-06-18 02:02:02 +03:00
|
|
|
|
2019-06-23 00:30:21 +03:00
|
|
|
My public notes. Kind of a blog and wiki.
|
2019-06-18 02:02:02 +03:00
|
|
|
|
2019-06-29 01:06:37 +03:00
|
|
|
## Local server when editing content
|
|
|
|
|
|
|
|
```bash
|
|
|
|
nix-build -A ghc.notessridca
|
|
|
|
./result/bin/notessridca serve --watch
|
|
|
|
```
|
|
|
|
|
|
|
|
## Hacking on Main.hs
|
|
|
|
|
|
|
|
```bash
|
|
|
|
nix-shell -A shells.ghc --run "ghcid -T 'Main.runApp (Main.Serve 8080 True)'"
|
|
|
|
```
|
|
|
|
|
2019-06-18 02:02:02 +03:00
|
|
|
## TODO
|
|
|
|
|
2019-06-28 17:06:58 +03:00
|
|
|
- Reflex based
|
|
|
|
- What I'd like to do *first*: write a server that serves static files which
|
|
|
|
gets auto-generated on file change. Basically combine `warp` with `fsnotify`.
|
|
|
|
- [ ] Use `warp` to serve the current dist directory.
|
|
|
|
- [ ] Add `fsnotify` to re-run Shake on file modificaiton (warp server
|
|
|
|
should serve the new files automatically)
|
|
|
|
- Shake API to do this: https://hackage.haskell.org/package/shake-0.18.2/docs/Development-Shake-Database.html
|
2019-06-29 01:06:37 +03:00
|
|
|
- Literate haskell
|
|
|
|
- Include rendered Main.lhs as a post in notes.srid.ca
|
2019-06-19 04:43:13 +03:00
|
|
|
|
2019-06-29 01:06:37 +03:00
|
|
|
### Article Ideas
|
2019-06-19 04:43:13 +03:00
|
|
|
|
|
|
|
- Github CI for OSS haskell projects
|
2019-06-22 17:34:03 +03:00
|
|
|
- Lens and friends
|
|
|
|
- mtl
|
|
|
|
- string types
|
|
|
|
- personal nix cache
|