Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 607 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 607 Bytes

trolleys

🛒 Haskell program to schedule trolleys and shifts randomly!

Usage

Get ghcup! (or stack)

Create a YAML file in the root directory with the shifts and volunteers you want to cover:

# config.yml
shifts: [M, T, W, H, F, S]
volunteers:
  - name: Flavio
    availability: [S]
  - name: Lydia
    availability: [M, H, F, S]
  # ...

Run the program!

$ cabal repl
$ main

TODO

  • Do not repeat shifts!
  • Get captain from options
  • Try to match families together