Skip to content

Commit

Permalink
Fix 'Running the examples' section in Setup docs (fjvallarino#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjvallarino authored Jan 12, 2023
1 parent c233aba commit f9e7679
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions docs/tutorials/00-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,27 @@ still need to install the [dependencies](#libraries-sdl2-and-glew).

### Running the examples

Inside the cloned directory, you can run each of the examples with `stack run`:
Inside the cloned directory, you can run each of the examples with:

```bash
stack run todo
stack run books
stack run ticker
stack run generative
.stack-work/dist/<<arch>>/Cabal-<<cabal-ver>>/build/<<name>>/<<name>>
```
In general, both `arch` (e.g. `x86_64-osx`) and `cabal-ver` (e.g. 3.6.3.0) are
the only directories you will find in that folder.
For example:
```bash
.stack-work/dist/x86_64-osx/Cabal-3.6.3.0/build/todo/todo
```
Unfortunately, `stack run` does not support the `--flags` argument, which forces
us to run the examples manually. The `dev-test-app`, which is built
unconditionally, can be run with:
```bash
stack run dev-test-app
```
#### Notes
Expand Down

0 comments on commit f9e7679

Please sign in to comment.