Skip to content
/ ocaml-starter Public template

OCaml starter template. With esy and dune.

License

Notifications You must be signed in to change notification settings

mxthevs/ocaml-starter

Repository files navigation

ocaml-starter

OCaml

Opinionated OCaml starter template. With esy and dune.

Dune by default assumes that all the source code lays on the same directory as the dune file. If you want to have subdirs inside lib then you have to have a separated dune file for each of them. But this template comes with (include_subdirs unqualified) as a dune option. Which allows having others subdirs inside lib without having to setup them as separated libraries. If you do not want this behaviour just remove this line.

Prerequisites

esy

A package manager for the OCaml ecosystem. It can install packages from opam and from npm.

It also automatically resolves transitive dependencies, and generates a lock file containing their versions to make it easier to replicate your setup on multiple machines without storing the downloaded dependencies.

npm i -g esy

Or, if you're using yarn

yarn global add esy

Up and running

Install the dependencies with esy:

esy

Build the project:

esy build

Run the example binary:

esy x ocaml_starter <dividend> <divisor>

About

OCaml starter template. With esy and dune.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages