FP-inspired prelude/standard library for ReasonML projects
engines
field from the package.json. I had added this to clearly convey the expected Node version for CI and other developers, but it turns out this field can actually prevent Relude from being installed in projects with mismatched Node versions. My bad.<#>
) is now <$$>
. This allows for compatibility with Melange and newer OCaml versions! 🥳 h/t @anmonteiro, and sorry it took so long to get a release out with this change!List.consOption
and List.appendOption
. h/t @cakekindelfirst
, second
, third
...) were added to the Tuple module. h/t @maxkorpSet
from a single value via Set.singleton
AsyncResult
values, prefer the "most successful" with AsyncResult.alt
Set
and Map
expose more information about the internal Comparable.t
type, keeping that type information from being lost outside of the module. h/t @johnhaley81bastet
and bisect_ppx
have been updated. If these dependencies were giving you any problems in the past, please try updating and let us know if there are still problems (e.g. on Windows or when using the ReScript compiler).BoundedEnum.inverseMap*
functions
BoundedEnum
instance, and a function 'e => 'a
, create a function which can perform an inverse lookup from 'a
to option('e)
Eq
module or a compare function/Ord
module in order to do the lookup comparisons for the 'a
valueResult
- see #286 - thanks @rolandpeelen!This is a documentation/tooling update release - no API changes.
Updated docs home page: https://reazen.github.io/relude/#/ Generated docs page: https://reazen.github.io/relude/api/index.html
docs/
site.
Updated Coverage (in Coveralls): https://coveralls.io/github/reazen/relude
bisect_ppx
working well with BuckleScript and undertook the task of switching from Jest coverage to proper OCaml/Reason-based coverage.
Result
TRAVERSE
and BITRAVERSE
not exposing/unifying the types in the signatures #252 - fix in #264keep
/reject
for Set
/Map
bs-abstract
dependency is now [email protected]
. While the API is nearly identical, you'll need to update your package.json
, bsconfig.json
, and any references to the BsAbstract
module (which should now be BsBastet
instead). The Bastet migration guide may also be helpful.Relude.String
now has a type t
. This means it conforms to BsBastet.Interface.TYPE
, and you can pass the Relude.String
module anywhere a TYPE
module is needed.with type ...
, which made it difficult to use (#252), but this has been fixed upstream