A small example to accompany a blog post on using utop in Emacs with your own OCaml projects
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.dir-locals.el
.gitignore
.merlin
.ocamldebug
.ocamlinit
Makefile
README.markdown

README.markdown

ocaml-utop-emacs-example

This is a tiny example OCaml project I wrote to go along with a blog-post describing how to configure utop so it knows about your opam packages and binaries for a given OCaml project.

Read the blog post for more information.

To get started run

make compile

If everything worked you should have a runnable executable _build/euler01. This is of course not the interesting part; got read the blog post for more information.

To play around with the code in the terminal (not Emacs) run utop and try the following:

#load_rec "impl.cmo";;
Impl.compute ();;