package travesty
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=bb51a1be12df40958ec46b979337e90d48c21aa77dc98b4770736c01210690aa
md5=e1193d5877fafac13235778fa1c9455b
CHANGES.md.html
v0.2.0 (2018-12-23)
Breaking changes
Potentially breaking change:
Traversable.S0_container
now containsmodule Elt : Equal.S
, and constrainstype elt
to be equal toElt.t
. This reflects the situation inBasic_container0
, and shouldn't break any code usingMake_container0
, but may cause custom-built modules to fail to type-check.T_container.any
's arguments have swapped order, to be more in line withCore
idioms.
New features
Add
Traversable.Chain0
, a functor for combining twoS0_container
instances together for nested traversal.Add
T_fn.disj
to go withT_fn.conj
.Add
Filter_mappable
, which generalisesList.filter_map
.Add
tee_m
to monad extensions. This is a small wrapper overf x >>| fun () -> x
that allows unit-returning monadic side-effects to be treated as part of a monad pipeline.Add
T_or_error
: monad extensions forCore.Or_error
.one
andtwo
are now implemented onT_container
, not justT_list
. The errors are slightly less precise, but otherwise nothing has changed.Add
T_container.at_most_one
to complementone
andtwo
.Add
Monad.To_mappable
, which makes sure that monads can be converted to mappables.Add
T_container.all
andnone
, to complementany
.
Other
Improve API documentation.
v0.1.3 (2018-12-13)
Fix incorrect module name (was
Lib
, notTravesty
).Restrict to OCaml v4.06+ (this was the case in the final v0.1.2 OPAM release, but not upstream).
v0.1.2 (2018-12-12)
Improve API documentation.
Move functors and concrete modules out of
Intf
files.Generally rationalise the interface ready for a public release.
Add various container modules from
act
:Singleton
,T_list
, andT_option
.
v0.1.1 (2018-12-10)
Move API documentation, in an attempt to get
dune-release
to work.
v0.1 (2018-12-10)
Initial release.
Existing functionality migrated from
act
's utils directory.