An OCaml clone of https://github.com/igstan/itake-2015.
- Run
docker-compose buildand wait awhile. - Once that's done, get a prompt in the container with
docker-compose run toycheck /bin/bash. - Initialize opam:
eval $(opam env). - Install project dependencies:
opam install -y . --deps-only --with-test. - Build the project:
dune build. - Open up VSCode and, if you haven't already, install the VSCode OCaml Platform extension.
- Connect to the
toycheckcontainer in the "Remote Explorer" tab in VSCode. You'll want to open a project in thehome/devuser/toycheckdirectory.
That's it! You should be set up with autocompletion and ready to go.
Obviously I don't expect anyone but myself to work on this project, since it's just a way for me to learn OCaml. But I do think that this is a relatively nice and easy OCaml setup which can be reused for other projects.
- Parser, inference, all that good stuff.
- Setup "OCaml Platform" VSCode extension when building docker container (maybe using
devcontainer.json). - Experiment with using Cram tests instead of OUnit.
- Build OCaml project dependencies into Docker image.