Skip to content

funkypierre/fp-ts

 
 

Repository files navigation

Functional programming in TypeScript

build status dependency status npm downloads

Inspired by PureScript, fantasy-land, 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 2.8.x, but should run with TypeScript 2.2.2+ too

Ecosystem

  • io-ts - TypeScript compatible runtime type system for IO validation
  • monocle-ts - Functional optics: a (partial) porting of scala monocle to TypeScript
  • newtype-ts - Implementation of newtypes in TypeScript
  • logging-ts - Composable loggers for TypeScript
  • fp-ts-routing - A type-safe bidirectional routing library for TypeScript
  • parser-ts - String parser combinators for TypeScript
  • remote-data-ts - RemoteData type (check this article)

Bindings

Documentation

Internals

Examples

Type Classes

License

The MIT License (MIT)

About

Functional programming in TypeScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 97.8%
  • JavaScript 2.1%
  • HTML 0.1%