https://github.com/webern/ocaml
No clue how to use ocaml
https://github.com/webern/ocaml
Last synced: about 1 year ago
JSON representation
No clue how to use ocaml
- Host: GitHub
- URL: https://github.com/webern/ocaml
- Owner: webern
- Created: 2019-09-15T00:26:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-17T14:46:12.000Z (over 6 years ago)
- Last Synced: 2025-01-24T21:24:57.102Z (over 1 year ago)
- Language: OCaml
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
_Catchy headline_
==
_Project description_
How to build the project
--
Run `make` to compile the libraries and executables that are
meant to be installed.
```
$ make
```
How to run tests
--
```
$ make test
```
How to use local libraries interactively
--
Use `dune utop DIR` where DIR if the folder contains the `dune`
file for a library. For instance, our `sub2` sample library can be
used as follows:
```
$ dune utop sub2/lib
...
utop # Proj_sub2.A.do_something ();;
1525373137.245 seconds have elapsed since 1970-01-01T00:00:00.
- : unit = ()
```
Installation
--
The project can be installed with or without opam.
Without opam, you can run the following which relies directly on
dune:
```
$ make install
```
Similarly:
```
$ make uninstall
```
With opam, you can install the current development version of your
project as a single opam package. It will override the currently
installed package of the same name, if any:
```
$ opam pin add proj .
```
For more information on `opam pin`, please consult the opam documentation.
The advantage of the opam-based method is that other opam packages can
depend on this one, and opam will recompile them automatically as
necessary.