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
|
|
|
|
|
|
|
## 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-19 04:43:13 +03:00
|
|
|
|
|
|
|
## Article Ideas
|
|
|
|
|
|
|
|
- Github CI for OSS haskell projects
|
2019-06-22 17:34:03 +03:00
|
|
|
- Lens and friends
|
|
|
|
- mtl
|
|
|
|
- string types
|
|
|
|
- personal nix cache
|
2019-06-21 02:16:03 +03:00
|
|
|
|
|
|
|
## Running
|
|
|
|
|
2019-06-27 19:56:57 +03:00
|
|
|
```bash
|
2019-06-28 17:06:58 +03:00
|
|
|
nix-build -A ghc.notessridca
|
|
|
|
./result/bin/notessridca
|
2019-06-21 02:16:03 +03:00
|
|
|
nix-shell -p nodePackages.serve --run 'serve dist'
|
|
|
|
```
|
2019-06-27 19:56:57 +03:00
|
|
|
|
|
|
|
Using ghcid:
|
|
|
|
|
|
|
|
```bash
|
2019-06-28 17:06:58 +03:00
|
|
|
nix-shell -A shells.ghc --run ghcid
|
2019-06-27 19:56:57 +03:00
|
|
|
```
|