codio/boxparts — pull request #83 by avsm (2014-03-30 15:25:00+00:00)
Title: Add Real World OCaml packages to opam part

This (untested) diff initializes OPAM and installs the packages from https://realworldocaml.org/install into the opam repository (`~/.opam`). This makes them easily available to users without having to leave it compiling for 30 minutes (and also saving Codio container resources).

The only thing else they need to do after this should be to:

```
$ eval `opam config env`
$ utop
```

It also adds the necessary `.ocamlinit` file from a Gist. There may be a way to embed this in the part to avoid a GitHub dependency like this.

Anyway, if this diff is headed in the right direction, we would love to recommend Codio to new readers of Real World OCaml as the best way to get started instantly by forking the https://github.com/realworldocaml/examples repository into Codio.