Quick install with Opam
The easiest way to install is to use OPAM.
Install Opam, then, as a regular user, fetch and install an OCaml version and install
Ocf.
The whole can be done with the following opam commands:
$ opam init --compiler=4.12.0
$ opam update
$ opam install ocf
You can also install the preprocessor package:
$ opam install ocf_ppx
Dependencies
To build Ocf, you will need:
From the sources
Get the sources from git repository:
$ git clone https://framgit.org/zoggy/ocf.git
Or pick one of the releases:
- 0.8.0
[December 7, 2021]
- use dune to build and install,
- ppx: use ppxlib,
- ppx: disable warning 39 before the generated code and enable it after.
- 0.7.0
[May 31, 2021]
- add fail_if_not_exist parameter to
Ocf.from_file (default is false).
- 0.6.0
[May 10, 2021]
- upgrade to OCaml 4.12.0
- checkocaml.ml script handles version number modifiers
- Ocf.to_arg: fix doc string
- fix META file so that ocf.ppx has a version
- 0.5.0
[May 3, 2016]
- 0.4.0
[September 28, 2015]
- fix: handle change in attribute location for records in ocaml 4.02.2,
- configure script does not require camlp4 (which was not used)
- 0.3.0
[June 29, 2015]
- add
Ocf.Wrapper.bool and
Ocf.bool
to create options with boolean values,
- add
Ocf.Wrapper.string_map
and
Ocf.string_map
to create options whose values are maps from string to
'a,
- distinguish, using types, open and closed groups (groups and options
can only be added to open groups),
- add
Ocf.as_group to convert
an option to a (closed) group,
- to_json
wrapper
functions now have a ?with_doc: bool parameter,
- new [@ocf.doc] attribute for record fields to that the wrapper
generated by ppx extension dumps documentation strings if with_doc=true.
- 0.2.0
[June 18, 2015]
- 0.1.0
[June 2, 2015]
Compilation
Just type
$ make install
This will install the ocf
package.