Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kutyel/trolleys
🛒 Haskell program to schedule trolleys and shifts randomly!
https://github.com/kutyel/trolleys
haskell haskell-application haskell-cli random random-shuffle schedule scheduler
Last synced: 21 days ago
JSON representation
🛒 Haskell program to schedule trolleys and shifts randomly!
- Host: GitHub
- URL: https://github.com/kutyel/trolleys
- Owner: kutyel
- License: mit
- Created: 2019-10-20T22:40:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-20T16:18:49.000Z (5 months ago)
- Last Synced: 2024-10-05T14:37:32.122Z (about 1 month ago)
- Topics: haskell, haskell-application, haskell-cli, random, random-shuffle, schedule, scheduler
- Language: Haskell
- Homepage:
- Size: 33.2 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# trolleys
🛒 Haskell program to schedule trolleys and shifts randomly!
## Usage
Get [ghcup](https://www.haskell.org/ghcup/)! (or [stack](https://docs.haskellstack.org/en/stable/README/))
Create a YAML file in the root directory with the **shifts** and **volunteers** you want to cover:
```yaml
# config.yml
shifts: [M, T, W, H, F, S]
volunteers:
- name: Flavio
availability: [S]
- name: Lydia
availability: [M, H, F, S]
# ...
```Run the program!
```sh
$ cabal repl
$ main
```## TODO
- [x] Do not repeat shifts!
- [ ] Get captain from options
- [ ] Try to match families together