@nll/fp-ts

Functional programming in TypeScript

Usage no npm install needed!

<script type="module">
  import nllFpTs from 'https://cdn.skypack.dev/@nll/fp-ts';
</script>

README

Functional programming in TypeScript

build status dependency status npm downloads

Inspired by PureScript, static-land, Scala.

The idea (faking higher kinded types in TypeScript) is based on Lightweight higher-kinded polymorphism

Installation

To install the stable version:

npm install --save fp-ts

TypeScript compatibility

The stable version is tested against TypeScript 3.2.4, but should run with TypeScript 2.8.0+ too

Note. If you are running < typescript@3.0.1 you have to polyfill unknown.

You can use unknown-ts as a polyfill.

Note. Make sure to always have a single version of fp-ts installed in your project. Multiple versions are known to cause tsc to hang during compilation. You can check the versions currently installed using npm ls fp-ts (make sure there's a single version and all the others are marked as deduped).

Ecosystem

Bindings

Documentation

Internals

Examples

Type Classes

License

The MIT License (MIT)