package semaphore-compat

  1. Overview
  2. Docs
Compatibility Semaphore module

Install

Dune Dependency

Authors

Maintainers

Sources

semaphore-compat-1.0.0.tbz
sha256=2fc9e1be5182741210f58e33ec8314ed0fdf2b8049aaf951da6b8db14057ed9b
sha512=b686b16f3d6d4d0d02df02670f0ae60dda5306d9fe7125402f26cd9b578ab8a31dfba175db4d79faa84edc337c64762400d5570be0e1c2ddc1bfc77c464bfbc1

Description

Projects that want to use the Semaphore module defined in OCaml 4.12.0 while staying compatible with older versions of OCaml should use this library instead.

Published: 03 Nov 2020

README

Compatibility Semaphore module

Projects that want to use the Semaphore module defined in OCaml 4.12.0 while staying compatible with older versions of OCaml should use this library instead. On OCaml versions 4.12 and above, this library defines an alias Semaphore to the standard library's definition of the module. Otherwise, it provides an equivalent definition of Semaphore.

Depending on this library

Opam libraries depending on this module are encouraged to use a conditional dependency:

depends: [
  ("ocaml" {>= "4.12.0"} | "semaphore-compat")
]

This ensures that any dependencies of your library that don't need pre-4.12 compatibility will never transitively depend on semaphore-compat.


Acknowledgements

This repository structure is mostly copied from JaneStreet/result, which provides a compatibility result type. Thanks to the OCaml maintainers for their improvements to the standard library.

Dependencies (1)

  1. dune >= "2.0"

Dev Dependencies

None

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.