2.16.9 • Published 5 months ago

fp-ts v2.16.9

Weekly downloads
423,084
License
MIT
Repository
github
Last release
5 months ago

📢 Important Announcement: fp-ts is Joining the Effect-TS Ecosystem!

We are excited to announce that the fp-ts project is officially merging with the Effect-TS ecosystem. This is a significant step forward in the functional programming landscape, bringing together two powerful libraries under one roof. Giulio Canti, the author of fp-ts, is being welcomed into the Effect organization, promising an exciting future with enhanced capabilities and support.

What This Means for New Users:

Effect-TS can be regarded as the successor to fp-ts v2 and embodies what would be considered fp-ts v3. This merger marks a significant evolution in the library's capabilities, integrating more features and functionalities tailored towards robust, type-safe, and scalable functional programming.

For more details on this merger and what it entails, please refer to the official announcement here. Additionally, you can explore more about Effect-TS and its offerings on our website and documentation.

Introduction

fp-ts is a library for typed functional programming in TypeScript.

fp-ts aims to allow developers to use popular patterns and abstractions that are available in most functional languages. For this, it includes the most popular data types, type classes and abstractions such as Option, Either, IO, Task, Functor, Applicative, Monad to empower users to write pure FP apps and libraries built atop higher order abstractions.

A distinctive feature of fp-ts with respect to other functional libraries is its implementation of Higher Kinded Types, which TypeScript doesn't support natively.

Inspired by

Sponsors

Installation

To install the stable version:

npm install fp-ts

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).

TypeScript compatibility

Strictness – This library is conceived, tested and is supposed to be consumed by TypeScript with the strict flag turned on.

fp-ts versionrequired typescript version
2.0.x+3.5+
1.15.x+3.1+
<= 1.14.42.8+ (*)

(*) If you are running < typescript@3.0.1 you have to polyfill the unknown type. You can use unknown-ts as a polyfill.

Documentation

Disclaimer. Teaching functional programming is out of scope of this project, so the documentation assumes you already know what FP is.

Help

If you need help with fp-ts check out:

Development

License

The MIT License (MIT)

@shareid-ai/standard@mysa/publish-cbm-to-sns@prisma/sdklastfm-cd-scrobbler@travelshift/webamazon-advertising-api-nodejs-sdktesting-cli-ajayfile-api-create-folderrandom-theme-switcherfunctional-filetypesadd-commit-pushqush-testctm_connectordte-umbrella-apibcl-webbcl-whitelabelsommario-app@cloudflare/util-sparrow@0x706b/io-ts-decoratorsesw-ts@denis_voronin/react-app-templateorthrus-lp-services-frontendtest-esw-tslattice-service@bjmrq/lambdaflow@bjmrq/roubidoumessenger-websocket-payloadszrest-benchmarking-serverio-functions-templatejaskell@ourtradehub/dblibrarycloset-viewerng11-material-treetable@brandingbrand/fsintegrationopen-decision-builder@ovotech/identity-auth@turnslate/cms@turnslate/shared@linuxcave/express@projitect/projitect-v2fp-ts-helpersio-ts-helpers@nick-kelly/about-me_backend@nick-kelly/microservices-prototype-messages@the-lab/platformts-triegitlab-merge-request-flow@toy-js/client@toy-js/server@toy-js/sharedzrest-benchmarker@closet-viewer/closet-viewer-benchmarkopropr-fpopr-typesopr-webpack@clumsycomputer/graphics-renderer@lodasoft/api-ts@nll/async-data-ts@nll/remote-data-ts@nll/rx-fsa@nll/utils-ts@nulliel/api-ts@nulliel/model-ts@closet-viewer/closet-viewer@closet-viewer/closet-viewer-test@moby-it/poker-corebusiness_serviceautoapprove.titlesauthorization_serviceasgardex@sudoplatform/sudo-password-manager@turtleside/octopus@turtleside/standard@turtleside/turtleshellarex-js-sandboxstarter-ts-projectportman-lambdanx-angulartitles-workflow-server@shareid/corep-np-patcher@andrewcturing/platform@infinitebrahmanuniverse/nolb-fp@cipherstash/stashjsmetakey-libfp-assignments@1password/web-apifetch-iotstt-osswechaty@everything-registry/sub-chunk-1698@viamedici-spc/configurator@imtbl/imxd-clientimx-sdk@hyeon/ts-calc@digitalzz/lowcode-code-generatorsm-contentsm-exercises@restfulhead/npm-auto-plugin-filter-by-path
2.16.9

5 months ago

2.16.7

6 months ago

2.16.8

6 months ago

2.16.6

7 months ago

2.16.5

9 months ago

2.16.4

9 months ago

2.16.3

10 months ago

2.16.2

12 months ago

2.16.1

1 year ago

2.16.0

2 years ago

2.15.0

2 years ago

2.14.0

2 years ago

2.13.2

2 years ago

2.13.0

2 years ago

2.13.1

2 years ago

3.0.0-alpha.25

2 years ago

3.0.0-alpha.24

2 years ago

3.0.0-alpha.26

2 years ago

3.0.0-alpha.23

2 years ago

2.13.0-rc.6

2 years ago

2.13.0-rc.4

2 years ago

2.13.0-rc.5

2 years ago

2.13.0-rc.2

2 years ago

2.13.0-rc.3

2 years ago

2.13.0-rc.1

2 years ago

2.12.3

2 years ago

2.12.2

2 years ago

3.0.0-alpha.21

3 years ago

3.0.0-alpha.22

3 years ago

2.12.0

3 years ago

2.12.1

3 years ago

2.11.9

3 years ago

2.11.10

3 years ago

3.0.0-alpha.20

3 years ago

2.11.8

3 years ago

2.11.6

3 years ago

2.11.7

3 years ago

2.11.5

3 years ago

2.11.4

3 years ago

3.0.0-alpha.19

3 years ago

2.11.3

3 years ago

3.0.0-alpha.18

3 years ago

2.11.2

3 years ago

2.11.1

3 years ago

2.11.0

3 years ago

2.10.5

4 years ago

2.10.4

4 years ago

3.0.0-alpha.17

4 years ago

2.11.0-rc.1

4 years ago

2.11.0-rc.2

4 years ago

2.10.3

4 years ago

2.10.1

4 years ago

2.10.2

4 years ago

2.10.0

4 years ago

2.10.0-rc.8

4 years ago

2.10.0-rc.7

4 years ago

3.0.0-alpha.16

4 years ago

2.10.0-rc.6

4 years ago

2.10.0-rc.5

4 years ago

2.10.0-rc.4

4 years ago

2.10.0-rc.3

4 years ago

3.0.0-alpha.15

4 years ago

2.10.0-rc.2

4 years ago

2.10.0-rc.1

4 years ago

3.0.0-alpha.14

4 years ago

3.0.0-alpha.13

4 years ago

3.0.0-alpha.12

4 years ago

2.9.5

4 years ago

3.0.0-alpha.11

4 years ago

2.9.4

4 years ago

3.0.0-alpha.10

4 years ago

3.0.0-alpha.9

4 years ago

3.0.0-alpha.8

4 years ago

3.0.0-alpha.7

4 years ago

3.0.0-alpha.6

4 years ago

3.0.0-alpha.5

4 years ago

3.0.0-alpha.4

4 years ago

3.0.0-alpha.3

4 years ago

3.0.0-alpha.2

4 years ago

3.0.0-alpha.1

4 years ago

2.9.3

4 years ago

2.9.2

4 years ago

2.9.1

4 years ago

2.9.0

4 years ago

2.8.6

4 years ago

2.8.5

4 years ago

2.8.4

4 years ago

2.8.3

4 years ago

2.8.2

4 years ago

2.8.1

4 years ago

2.8.0

4 years ago

2.7.1

4 years ago

2.7.0

4 years ago

2.6.7

4 years ago

2.6.6

5 years ago

2.6.5

5 years ago

2.6.3

5 years ago

2.6.4

5 years ago

2.6.2

5 years ago

2.6.1

5 years ago

2.6.0

5 years ago

2.5.4

5 years ago

2.5.3

5 years ago

2.5.2

5 years ago

2.5.1

5 years ago

2.5.0

5 years ago

2.4.4

5 years ago

2.4.3

5 years ago

2.4.2

5 years ago

2.4.1

5 years ago

2.4.0

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

1.19.5

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

1.19.4

5 years ago

2.0.0

5 years ago

1.19.3

5 years ago

1.19.2

6 years ago

2.0.0-rc.8

6 years ago

1.19.1

6 years ago

2.0.0-rc.7

6 years ago

2.0.0-rc.6

6 years ago

1.19.0

6 years ago

2.0.0-rc.5

6 years ago

2.0.0-rc.4

6 years ago

2.0.0-rc.3

6 years ago

2.0.0-rc.2

6 years ago

2.0.0-rc.1

6 years ago

1.18.2

6 years ago

1.18.1

6 years ago

1.18.0

6 years ago

1.17.4

6 years ago

1.17.3

6 years ago

1.17.2

6 years ago

1.17.1

6 years ago

1.17.0

6 years ago

1.16.1

6 years ago

1.16.0

6 years ago

1.15.1

6 years ago

1.15.0

6 years ago

1.14.4

6 years ago

1.14.3

6 years ago

1.14.2

6 years ago

1.14.1

6 years ago

1.14.0

6 years ago

1.13.0

6 years ago

1.12.3

6 years ago

1.12.2

6 years ago

1.12.1

6 years ago

1.12.0

6 years ago

1.11.3

6 years ago

1.11.2

6 years ago

1.11.1

6 years ago

1.11.0

6 years ago

1.10.1

6 years ago

1.10.0

6 years ago

1.9.0

6 years ago

1.8.1

6 years ago

1.8.0

6 years ago

1.7.1

6 years ago

1.7.0

6 years ago

1.6.2

7 years ago

1.6.1

7 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

1.0.0-rc

7 years ago

0.6.8

7 years ago

0.6.7

7 years ago

0.6.6

7 years ago

0.6.5

7 years ago

0.6.4

7 years ago

0.6.3

7 years ago

0.6.2

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.4

7 years ago

0.5.3

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.6

7 years ago

0.4.5

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.5

7 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.9

8 years ago

0.2.8

8 years ago

0.2.7

8 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago