Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kutyel/trolley-scheduler
๐Haskell program to schedule trolleys and shifts randomly!
https://github.com/kutyel/trolley-scheduler
haskell haskell-application random schedule scheduler schedules
Last synced: about 1 month ago
JSON representation
๐Haskell program to schedule trolleys and shifts randomly!
- Host: GitHub
- URL: https://github.com/kutyel/trolley-scheduler
- Owner: kutyel
- License: mit
- Created: 2019-10-02T06:22:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-04T20:29:33.000Z (about 5 years ago)
- Last Synced: 2024-10-24T14:45:56.685Z (3 months ago)
- Topics: haskell, haskell-application, random, schedule, scheduler, schedules
- Language: Haskell
- Size: 13.7 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# trolley-scheduler
๐Haskell program to schedule trolleys and shifts randomly!
## Usage
```sh
host$ nix-shell --pure shell.nix
nix$ cabal repl
*Lib> Main.main
```testing:
```sh
nix$ cabal repl test-trolley
...
*Lib> Test.main
```with ghcid:
```sh
nix$ ghcid -c 'cabal repl test-trolley' --test 'Test.main'
```adding deps:
- add to cabal file, then run:
```sh
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! ๐จโ๐ฉโ๐งโ๐ฆ
- [x] Improve printing of output. ๐จ
- [x] 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. ๐