/trolleys

🛒 Haskell program to schedule trolleys and shifts randomly!

Primary LanguageHaskellMIT LicenseMIT

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