Ocaml

OCaml ecosystem = opam + dune + merlin + ocamlformat.

plurigrid eb45af3 2 files · 2.3 KB Updated

File contents

ocaml

OCaml ecosystem = opam + dune + merlin + ocamlformat.

Atomic Skills

Skill Commands Domain
opam 45 Package manager
dune 20 Build system
merlin 1 Editor support
ocamlformat 1 Formatter

Workflow

opam switch create 5.1.0
eval $(opam env)
opam install dune merlin
dune init project myapp
cd myapp
dune build
dune test

dune-project

(lang dune 3.0)
(name myapp)

(library
 (name mylib)
 (libraries str unix))

(executable
 (name main)
 (libraries mylib))

REPL

utop
dune utop

plurigrid/asi/tree/main/skills/ocaml commit eb45af3ca4

Frequently asked questions

npx skillmds@latest add plurigrid/ocaml