https://github.com/active-group/tum-workshop-2021
Haskell-Workshop 2021 TU München
https://github.com/active-group/tum-workshop-2021
Last synced: about 2 months ago
JSON representation
Haskell-Workshop 2021 TU München
- Host: GitHub
- URL: https://github.com/active-group/tum-workshop-2021
- Owner: active-group
- Created: 2021-01-24T15:29:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-26T16:43:40.000Z (over 5 years ago)
- Last Synced: 2023-08-01T02:40:08.955Z (almost 3 years ago)
- Language: Haskell
- Size: 49.8 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Preparation
If you have a working Haskell/Cabal setup for Haskell 8.8 or 8.10,
things might just work.
Otherwise:
- install [Docker](https://www.docker.com/)
- give Docker at least 6GB RAM where relevant
- in the `docker-ghcide` directory, say do `docker build -t ghcide .`
(this might take a while)
- install [Visual Studio Code](https://code.visualstudio.com/download)
- install VS Code Extension "Remote - Containers"
- select "View" -> "Command Palette" (some modifiers + P), type
"containers", select"Remote - Containers: Open Folder in Container"
- open the `hearts` directory
VS Code will then construct a container to do its business. That
might also take while.
# Starting the Game
## Console
The `Sync` module has two functions `gameAlong` and
`gameInteractive`. (Very rudimentary.)
## UI version
- in the `hearts` directory, run `./docker-shell.sh` to start a
suitable shell in a Docker container
- inside the Docker container, do `cabal build` to build the server
- inside the Docker container, do `./run-server-inside-docker.sh` to
start the server
- *outside* the Docker container:
- install [Elm](https://elm-lang.org/)
- cd to `hearts-frontend`, do:
```
elm reactor
```
- go to the URL there, typically
[`http://localhost:8000`](http://localhost:8000)
- click on `examples`, then `HeartsFrontend.elm`