It's a simplex-chat
-like app, but much simpler. There's a server
and a spawner
that spawns user
s following a config so that user
s talk to each other concurrently.
These might be useful if you'd like to learn Nix
and my flakes:
- Prerequisites
- Haskell
- Troubleshooting - see in case of problems with
VSCodium
, etc.
-
Install Nix - see how.
-
Start a devshell and run app.
-
with
cabal
cabal run
-
with
nix develop
nix develop cabal run
-
with
nix run
nix run
-
-
Here's a sample log:
-
Start a devshell.
nix develop
-
(Optionally) Run
VSCodium
.nix run .#writeSettings nix run .#codium .
-
Open a
Haskell
file and wait untilHLS
starts giving you type hints.
-
Practical STM: An Async Job Queue, by Jake Keuhlen
TMVar
- don't forget to put a value inside.stdout
is a shared resource - can put log into aTVar
.