package core
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=47c80523fc50da4cc1a95d6fde7bcdb99c74a51a7f88823f8c6f089ff1c95c87
CHANGES.md.html
Release v0.16.0
Changes that affect multiple modules:
Replaced references to
Caml
withStdlib
.Added
stable_witness
values to many stable-version submodules.Added support for locally-allocated values.
Added
[@local]
to many function arguments, especially closures.Added
[@local_opt]
to primitives, and exported more primitives explicitly.Added deriving
globalize
to some types.
Changes to individual modules:
Array
: Addedfold_map
andfold_mapi
.Bigstring
:Added
get_head_padded_fixed_string_local
,get_tail_padded_fixed_string_local
, andwrite_bin_prot_known_size
.Updated documentation for
unsafe_destroy
.
Binable
: Removed deprecated functor aliases.Binary_searchable
: AddedS0_permissions
signature.Bounded_index
: Addedzero_based_index
andnum_indexes
.Byte_units
: Addabs
,sign
, andneg
.Command
:Moved to its own library. Still re-exported from
Core
.Removed references to
Core
-dependent types.No longer exports process-management functions.
Added
Command.basic_or_error
.Added
Arg_type.parse
andArg_type.autocomplete
.Added
Flag.escape_with_autocomplete
,Flag.no_arg_required
, andFlag.no_arg_abort
.Removed deprecated function
Flag.one_or_more
.Added
Param.choose_one_non_optional
,Param.optional_to_required
, andParam.parse
.
Comparable
:Renamed
Polymorphic_compare
toComparisons
.Added
Stable.V1.With_stable_witness.Make
.
Container
: AddedS0_permissions
andS1_with_creators_permissions
.Date
:Document caveats for functions based on
is_weekday
oris_weekend
.Add
round_forward_to_weekday
,round_backward_to_weekday
,round_forward_to_business_day
, andround_backward_to_business_day
.Add
Stable.V1.Option.to_int
andStable.V1.Option.of_int_exn
.
Day_of_week
:Add deriving
sexp_grammar
andtyperep
.Add deriving
sexp_grammar
toStable.V1
.
Doubly_linked
: Addfirst_exn
andlast_exn
.Filename
: split outFilename_base
library for parts not dependent onCore
.Float
: addStable.V1
.Gc
:Add
Stat.add
.Add
stat_size
.Remove
prepare_heap_to_count_minor_allocation
.
Hashable
: AddStable.V1.With_stable_witness
.Hashtbl
: AddMake_stable
andMake_stable_with_hashable
.Hash_queue
: Addto_alist
,replace_or_enqueue
,replace_or_enqueue_front
, andreplace_or_enqueue_back
.Hash_set
: AddMake_stable
andMake_stable_with_hashable
.Heap_block
: Moved to its ownHeap_block
library.Identifiable
: AddMake_plain_using_comparator
.Indexed_container
: Added this module. It exportsS1_permissions
andS1_with_creators_permissions
, defined by analogy to the same names inContainer
.Info
: AddedStable.V2.t_sexp_grammar
.Int
: Exportedcomparator_witness
equivalence withBase.Int
.Int63
:Exported
comparator_witness
equivalence withBase.Int
.Added
Stable.V1
.
Lazy
: Exportedt_stable_witness
.List
: remove deprecated functionstable_dedup
.Map
:Removed creator/accessor signatures except
*_generic
versions.Made
t
injective in all three type parameters.Replaced references to
comparator
type withComparator.Module.t
.Removed deprecated type alias
comparator
.Reworded documentation on Tree types.
Added
quickcheck_observer
andquickcheck_shrinker
toS_plain
.Added
of_list_with_key
,of_list_with_key_or_error
,of_list_with_key_exn
,of_list_with_key_multi
,split_le_gt
,split_lt_ge
, andtranspose_keys
.Added
Make_applicative_traversals
, providingmapi
andfilter_mapi
that operate lazily inside an applicative.Added
Stable.V1.With_stable_witness
.
Maybe_bound
:Added deriving
equal
andhash
tot
,As_lower_bound.t
, andAs_upper_bound.t
.
Option
:Added deriving
equal
andhash
toStable.V1
.
Or_error
:Deprecated
Expect_test_config_with_unit_expect
, as[%expect]
now always has type unit.
Percent
:Addressed round-trippability via strings and sexps.
Added
to_string_round_trippable
.Documented caveats about
Stringable
andSexpable
implementations.Documented caveats on
Stable.V1
.Added
Stable.V2
based ont_of_sexp
/sexp_of_t
and documented caveats.Added
Stable.V3
as a fully round-trippable version.Made similar updates to
Option.Stable
.Documented caveats on
Always_percentage
.Added
Almost_round_trippable
as a more human-readable format thanStable.V3
.
Addressed precision issues.
Added
*_slow_more_accurate
versions ofof_percentage
,to_percentage
,of_bp
, andto_bp
.Documented caveats on the original versions.
Added
t_sexp_grammar
,one_hundred_percent
.
Pid
: Added derivingquickcheck
.Quickcheck
: Updated implementation and documentation ofgeometric
. Swapped argument order.Sequence
: Added inlined records toStep.t
.Set
:Removed creator/accessor signatures except
*_generic
versions.Replaced references to
comparator
type withComparator.Module.t
.Added
comparator_s
.Updated documentation of
split
.Added
split_le_gt
andsplit_lt_ge
.Added
Stable.V1.With_Stable_Witness
.
Set_once
:Added documentation of
equal
semantics.Added deriving
compare
andequal
.
Sexp
: Added derivingequal
andsexp_grammar
toStable.V1.t
.String_id
:Documented shared bin shape for all modules created by
Make
.Added
Make_with_distinct_bin_shape
.
Time_float
: Updated deprecation messages to mentionTime_float_unix
instead ofTime_unix
.Time_ns
:Added deriving
equal
andhash
toStable.V1.Ofday
.Added more
of_int_*
conversions toSpan
.Added optional
Random.State
argument toSpan.randomize
.Removed deprecated submodules from
Stable
.Exported
Option
submodule.Exported
Stable
submodule.Exported
V1
,Option.V1
, andOption.V2
fromSpan.Stable
.Added deriving
hash
,equal
, andsexp_grammar
toSpan.Stable.V2
.
Tuple
: AddedT2.map_both
andT3.map_all
.Unit
: AddedStable.V2
with zero-width bin-io.Univ_map
: Moved to its ownUniv_map
library.Validated
: AddedS_allowing_substitution
.