Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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!

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