Skip to content

Commit

Permalink
stack exec example
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Zocca committed Dec 16, 2023
1 parent e09a549 commit 889f123
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ runghc examples/basic.hs
```
`Setting phasers to stun... (port 3000) (ctrl-c to quit)`

Then interact with the server with curl or a browser:
Or equivalently with [`stack`](https://docs.haskellstack.org/en/stable/):

```bash
stack exec -- scotty-basic
```

Once the server is running you can interact with it with curl or a browser:

```bash
curl localhost:3000
Expand Down

0 comments on commit 889f123

Please sign in to comment.