package easy-format

  1. Overview
  2. Docs
High-level and functional interface to the Format module of the OCaml standard library

Install

Dune Dependency

Authors

Maintainers

Sources

easy-format-1.3.2.tbz
sha256=3440c2b882d537ae5e9011eb06abb53f5667e651ea4bb3b460ea8230fa8c1926
sha512=e39377a2ff020ceb9ac29e8515a89d9bdbc91dfcfa871c4e3baafa56753fac2896768e5d9822a050dc1e2ade43c8967afb69391a386c0a8ecd4e1f774e236135

Description

This module offers a high-level and functional interface to the Format module of the OCaml standard library. It is a pretty-printing facility, i.e. it takes as input some code represented as a tree and formats this code into the most visually satisfying result, breaking and indenting lines of code where appropriate.

Input data must be first modelled and converted into a tree using 3 kinds of nodes:

  • atoms
  • lists
  • labelled nodes

Atoms represent any text that is guaranteed to be printed as-is. Lists can model any sequence of items such as arrays of data or lists of definitions that are labelled with something like "int main", "let x =" or "x:".

Published: 02 Aug 2019

README

README.md

This project is unmaintained. Pull requests won't be reviewed. If you would like to contribute, please request a transfer to ocaml-community.

Easy-format: indentation made easy

Documentation

The documentation is at https://mjambon.github.io/mjambon2016/easy-format.html

Installation

Installation requires dune (formerly known as jbuilder) and ocamlfind.

$ make
$ make install

Uninstallation

$ make uninstall

Examples

Some examples can be run with make test before installing.

More examples that require Easy-format to be installed and possibly dependencies on other packages can be found in the examples/ subdirectory.

TODO

  • Port documentation from old website to a better place, possibly https://readthedocs.org/.

  • Switch from pure make to jbuilder for both build/install and development.

  • We're looking for an official maintainer for the library and its documentation.

Dependencies (2)

  1. ocaml >= "4.02.3" & < "5.0"
  2. dune >= "1.10"

Dev Dependencies

None

Used by (10)

  1. acgtk >= "1.3.2" & < "2.0.0"
  2. atd
  3. biniou
  4. dum
  5. esgg
  6. learn-ocaml
  7. piqi < "0.7.0"
  8. piqilib
  9. reason < "1.7.4"
  10. yojson < "2.0.0"

Conflicts

None

OCaml

Innovation. Community. Security.