Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 495 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 495 Bytes

Hello, World!

If you are getting started in OCaml, you'll have to understand how the tooling works to move along.

This basic examples explains the basic scaffolding we'll use from now on.

  • ./lib/ : contains our application's logic.
  • ./bin/ : start our app
cd ./00-hello-world

# Compile and run `main.ml`
dune exec ./bin/main.exe

You can also load your project into a REPL, with dune utop

# open My_lib;;
# Greetings.world;;
- : string = "Hello, World!"