mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-19 00:56:42 -05:00
Shadow unsafe functions and operators from Pervasives
This commit is contained in:
parent
a8c7e14257
commit
473022956c
5 changed files with 24 additions and 1 deletions
2
_oasis
2
_oasis
|
|
@ -42,7 +42,7 @@ Library "containers"
|
||||||
CCFun, CCHash, CCInt, CCBool, CCFloat, CCArray, CCRef, CCSet,
|
CCFun, CCHash, CCInt, CCBool, CCFloat, CCArray, CCRef, CCSet,
|
||||||
CCOrd, CCRandom, CCString, CCHashtbl, CCMap, CCFormat, CCIO,
|
CCOrd, CCRandom, CCString, CCHashtbl, CCMap, CCFormat, CCIO,
|
||||||
CCInt64, CCChar, CCResult, CCParse, CCArray_slice,
|
CCInt64, CCChar, CCResult, CCParse, CCArray_slice,
|
||||||
CCListLabels, CCArrayLabels, CCEqual,
|
CCListLabels, CCArrayLabels, CCEqual, CCPervasives,
|
||||||
Containers
|
Containers
|
||||||
BuildDepends: bytes, result
|
BuildDepends: bytes, result
|
||||||
# BuildDepends: bytes, bisect_ppx
|
# BuildDepends: bytes, bisect_ppx
|
||||||
|
|
|
||||||
1
_tags
1
_tags
|
|
@ -161,3 +161,4 @@ true: annot, bin_annot
|
||||||
<src/**/*.ml> and not <src/misc/*.ml>: warn(+a-4-44-58-60@8)
|
<src/**/*.ml> and not <src/misc/*.ml>: warn(+a-4-44-58-60@8)
|
||||||
true: no_alias_deps, safe_string, short_paths
|
true: no_alias_deps, safe_string, short_paths
|
||||||
<src/**/*Labels.cm*>: nolabels
|
<src/**/*Labels.cm*>: nolabels
|
||||||
|
not <src/core/CCPervasives.*>: open(CCPervasives)
|
||||||
|
|
|
||||||
4
src/core/CCPervasives.ml
Normal file
4
src/core/CCPervasives.ml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
(* This file is free software, part of containers. See file "license" for more details. *)
|
||||||
|
|
||||||
|
include Pervasives
|
||||||
16
src/core/CCPervasives.mli
Normal file
16
src/core/CCPervasives.mli
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
|
||||||
|
(* This file is free software, part of containers. See file "license" for more details. *)
|
||||||
|
|
||||||
|
(** {1 Shadow unsafe functions and operators from Pervasives} *)
|
||||||
|
(** @since NEXT_RELEASE *)
|
||||||
|
|
||||||
|
val (=) : int -> int -> bool
|
||||||
|
val (<>) : int -> int -> bool
|
||||||
|
val (<) : int -> int -> bool
|
||||||
|
val (>) : int -> int -> bool
|
||||||
|
val (<=) : int -> int -> bool
|
||||||
|
val (>=) : int -> int -> bool
|
||||||
|
|
||||||
|
val compare : int -> int -> int
|
||||||
|
val min : int -> int -> int
|
||||||
|
val max : int -> int -> int
|
||||||
|
|
@ -57,3 +57,5 @@ module Set = struct
|
||||||
end
|
end
|
||||||
module String = CCString
|
module String = CCString
|
||||||
module Vector = CCVector
|
module Vector = CCVector
|
||||||
|
|
||||||
|
include CCPervasives
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue