- Homebrew (https://brew.sh/)
- Stack, OpenSSL and c-ares (
brew install haskell-stack openssl c-ares
) - Working DAML Dev Env (https://github.com/digital-asset/daml)
- gRPC v1.2.2 (https://github.com/grpc/grpc/blob/v1.22.x/BUILDING.md). Don't forget to check out the tag before building!
- Compiled Haskell Bindings (https://github.com/digital-asset/daml/tree/master/language-support/hs/bindings)
- Installed DAML SDK (https://docs.daml.com/getting-started/installation.html)
- Copy the compiled bindings into the folder
lib
- Build with
stack build
- Start Sandbox with
daml sandbox
- Start chat clients with
stack run chat-exe -- Alice
,stack run chat-exe -- Bob
and similar
Alice> :link Bob
linked: Bob
Alice> :link Nick
linked: Nick
Alice> ?
[Bob,Nick]
Alice> Hey to both of you
Dave> :link Edwina
linked: Edwina
Dave> ?
Edwina
linked: Alice
linked: Nick
Bob> ?
[Alice,Nick]
Bob> :link Dave
linked: Dave
linked: Edwina
Bob> ?
[Alice,Nick,Dave,Edwina]
Bob> Hey everyone
linked: Alice
linked: Bob
linked: Dave
linked: Edwina
Nick> ?
[Alice,Bob,Dave,Edwina]
Nick> Morning everybody
Nick> !Alice
Nick> (Alice) Who are Dave and Edwina?