aboutsummaryrefslogtreecommitdiff
path: root/picarones-hs/Main.lhs (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-03-07Add server to general repositorystuebinm1-0/+0
Idea: have all components of this program in one repository
2021-03-07Better handling of jsonstuebinm1-20/+47
(mostly to reduce the number of record types needed, and to deal with multiple possible types of client messages)
2021-02-19Send JSON instead of bare textstuebinm1-4/+5
(before, the server just sent "state [n]" on state change, instead of a properly serialised json value)
2021-02-17Seperate room states from global server statestuebinm1-51/+78
The main server state is now a `HashMap` of `Text` to `MVar Room` instead of just `Room`. This allows for changing room states independently from the server state, which should make the entire thing scale better on multi-core architectures (nevermind that "switching slides" is presumably not something in much need of multicore servers ...)