No description
- OCaml 90.7%
- Shell 9.1%
- Dune 0.2%
| caesar | ||
| capitalize | ||
| dict | ||
| duration/lib | ||
| files | ||
| findch | ||
| french | ||
| mult | ||
| parseint | ||
| rope | ||
| wordcount/lib | ||
| .gitignore | ||
| create | ||
| dune-project | ||
| mono.sh | ||
| README.md | ||
OCaml Exercises
Setup
You'll need the OCaml package manager:
sudo apt install opam
Individual user
wget https://raw.githubusercontent.com/ghuysmans/ocaml-exercises/master/mono.sh
. mono.sh
Shared .opam
- Create an
ocamluser who will manage packages. On Debian,sudo adduser ocaml. You may give him sudo privileges, but without them, the enrolment script will tell you what to execute. - Log in as him (
su ocaml) and follow the Individual user procedure. sudo chmod g+w /home/ocaml/.opam/log- Move into the repository (
cd ex),git commitwhatever you want... - For each user $u,
./enrol $u - Update their repository with the usual
git pullcommand.
Organization
Most exercises (e.g. palindrome.ml) are automatically tested:
- A test (
palindrome_test.ml) tries different inputs (add your own!). - An interface (
palindrome.mli) defines what you have to make.
Coding environment
Use your favorite editor!
Merlin provides autocomplete features, install it through opam:
opam install merlin
#FIXME user-setup?
vim
'TODO minimal config
VS Code
TODO