package tablecloth-melange

  1. Overview
  2. Docs
A portable standard library enhancement for Reason

Install

Dune Dependency

Authors

Maintainers

Sources

0.0.9.tar.gz
md5=99e20728399724bddbf077bac4351241
sha512=e43b2413efe3e03e8c872a98b9edf851812a758f1992bac30c56077e91a279b1c59d8b3d8f4c8f461ae3559fdf98bc8d4e5a151a4fb4e86b18e79fc6d2e5938f

README.md.html

Tablecloth-melange

Tablecloth is a library that shims over various standard libraries so they have the same function and module names, which using idiomatic types and patterns in each language.

This is the Melange implementation, which uses Belt, pipe-first, and camelCase.

Tablecloth is alpha-quality software, and is pre-1.0. It is currently undergoing some significant shifts and some libraries listed below are not available yet. Caveat emptor.

Check out the website for our interactive API documentation, or join the community in the Tablecloth Discord.

Installation

Note: these instructions are for the upcoming new version of tablecloth

Install via opam by:

opam install tablecloth-melange

Usage

The recommended way to use Tablecloth is with a top-level open at the beginning of a file.

This will ensure that all the built-in modules are replaced.

open Tablecloth

let () =
  String.toList("somestring")
  ->List.map(Char.toCode)
  ->List.map((x) => x+1))
  ->List.filterMap(Char.fromCode)
  ->String.fromList

Supported versions

Tablecloth is tested on OCaml 5.1.0 and Melange 2.1.0.

Development

When developing Tablecloth, you can test it against different versions of rescript, using the following commands:

  • TC_RESCRIPT_VERSION=10.0.0 make deps

Contributions

The maintainers are warm and friendly, and the project abides by a Code of Conduct.

There are many small tasks to be done - a small change to a single function can be extremely helpful. We also welcome new versions of tablecloth for other languages, or even for the same language but based on other libraries.

Check out the dedicated guide on contributing for more.

Developing

Please refer to the package.json for a complete list of supported actions. Here is a handful of useful, supported commands:

npm install
npm run build
npm run test
npm run format

License

Tablecloth-rescript uses the MIT license.

Authors

Initially written by Darklang.

OCaml

Innovation. Community. Security.