Skip to content

MinaProtocol/ocaml-extlib

 
 

Repository files navigation

OCaml Extended standard Library - ExtLib.

Build Status Build status

 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version,,
 * with the special exception on linking described in file LICENSE.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

What is ExtLib ?

ExtLib is a set of additional useful functions and modules for OCaml.

Project page : https://github.com/ygrek/ocaml-extlib

Online API documentation : http://ygrek.org.ua/p/extlib/doc/

Dependencies

  • cppo - enables conditional compilation to ensure compatibility with various OCaml versions
  • ocamlfind >= 1.5.1 - provides bytes package

Installation

Bazel

Minimal build, excluding modules Unzip, UChar, UTF8:

$ bazel build src:extLib

(NB: not src:ExtLib)

Maximal build, including modules Unzip, UChar, UTF8:

$ bazel build src:extLib --no//:minimal

This will build but not install the library, native mode only.

For details see bzl/README.md

Tests:

(Not yet supported)

Legacy

Unzip or untar in any directory and run

make minimal=1 build install

This will build and install bytecode and native libraries. On bytecode-only architecture run

make minimal=1 all install

minimal=1 will exclude from build several modules (namely Unzip UChar UTF8) potentially conflicting with other well established OCaml libraries. If your code is expecting to find these modules in extlib - omit this parameter during build to produce the full library.

Usage

Generate and read the documentation.

Release

  • Review git log and update CHANGES
  • Update version in Makefile
  • Commit
  • make release
  • upload tarball and make release on github
  • opam publish

Contributors

License

See LICENSE

About

Extended Standard Library for OCaml

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • OCaml 91.3%
  • Starlark 7.1%
  • Other 1.6%