package core

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file core.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
(** [Core] is an extension of {{!Core_kernel}[Core_kernel]} with Unix APIs. The unmodified
    libraries can be found there.

    In particular, [Core] has comprehensive implementation of times ([Time] and
    [Time_ns]), where some details are platform-specific.

    Some modules are mere extensions of those existing in [Core_kernel], like [Bigstring],
    [Caml], [Time], and [Md5], where what's added is handlers for reading from or writing
    to Unix sockets and file descriptors, or support for floating-point numbers. Other
    modules are entirely new, like:

    - [Command], a richly featured tool for creating command-line programs.
    - [Signal], for handling Unix signals like SIGHUP and SIGKILL.

    A few modules in Core don't have any platform-specific functionality but haven't yet
    been ported to Core_kernel for technical reasons (like a dependency on [Time], which
    until recently was only in Core):

    - [Interval]
*)
(**/**)

include Core_kernel
(**/**)

module Caml                   = Core_caml
module Command                = Core_command
module Core_stable            = Stable
module Date                   = Core_date
module Filename               = Core_filename
module Interval               = Interval
module Interval_intf          = Interval_intf
module Digest                 = Md5 [@@ocaml.deprecated "[since 2017-05] Use Md5 instead."]
(* When we moved [Mutex] out of [Core], we added this declaration of [Mutex] to prevent a
   mistake in which code that used to use [Core.Mutex] is unintentionally and silently
   switched to the stdlib's [Mutex] module. *)
module Mutex = struct end [@@deprecated "[since 2019-02] Use [Error_checking_mutex]"]
module Signal                 = Signal
module Sys                    = Core_sys
module Thread                 = Core_thread
module Time                   = Core_time_float
module Time_common            = Time_common
module Time_ns                = Core_time_ns
module Unix                   = Core_unix
module Version_util           = Version_util

(* Can't go in Common for circular-reference reasons *)
let sec = Time.Span.of_sec
let ( ^/ ) = Core_filename.concat
OCaml

Innovation. Community. Security.