Open-source Haskell library for modeling baseball and working with Retrosheet event data.
stack build
stack exec -- boxscore -y 2016 -t bos
stack exec -- event -y 2016 -t bos
Chadwick Bureau maintains a git repository containing the Retrosheet data files. This repository is setup as a submodule.
Run git submodule init
to initialize the submodule,
and git submodule update
to populate or update the data.
This assumes Postgres is already set up with user postgres
for a local database
baseball
:
PGUSER=postgres PGPASSWORD=password PGHOST=localhost PGDATABASE=baseball ./scripts/create-batting-stats-table.sh testgames.txt blah
stack test