kutyel / trolley-scheduler

📚Haskell program to schedule trolleys and shifts randomly!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trolley-scheduler

📚Haskell program to schedule trolleys and shifts randomly!

Usage

host$ nix-shell --pure shell.nix
nix$ cabal repl
*Lib> Main.main

testing:

nix$ cabal repl test-trolley
...
*Lib> Test.main

with ghcid:

nix$ ghcid -c 'cabal repl test-trolley' --test 'Test.main'

adding deps:

  • add to cabal file, then run:
host$ nix-shell --pure -p cabal2nix --run "cabal2nix ." > default.nix

TODO:

  • Generate a PDF? 📊
  • Read data from CSV files. 📖
  • Allow 3~4 people per shift! 👨‍👩‍👧‍👦
  • Improve printing of output. 🖨
  • Fill turns respecting availability. 📆
  • Each shift must have a Captain. 👨🏼‍✈️
  • Pioneers have more turns / preference. 🤓
  • Add long distance / has vehicle constraint. 🚗
  • Deduce month length prompting from terminal. 🗓

About

📚Haskell program to schedule trolleys and shifts randomly!

License:MIT License


Languages

Language:Haskell 83.9%Language:Nix 16.1%