gcanti/fp-ts
View on GitHub ↗ ★ 11,548 TypeScript
Functional programming in TypeScript
21 mentions on Hacker News by 17 people: 2 stories, 19 comments · first 2017-07-31 · latest 2026-10-02
20082026
-
…support removes a lot of the friction that used to come with completions and diagnostics. [1] https://github.com/gcanti/fp-ts [2] https://effect.website/blog/ts-plus-postmortem
comment by artisin · 2026-10-02 · in Effect 4.0 -
…at fp-ts and it’s version of pipe and flow. Also comes with various monads to play around with! [1] https://github.com/gcanti/fp-ts
comment by creakingstairs · 2023-09-27 · in Show HN: A JavaScript function that looks and behaves like a pipe operator -
…where you can see the comparison in PureScript is a one-liner (both data and polymorphic data): https://github.com/gcanti/fp-ts/blob/master/docs/guides/pure...
comment by toastal · 2023-02-18 · in John Carmack on Functional Programming in C++ (2018) -
…because of the light way library approach, which you seem to share. I also try fp-ts https://github.com/gcanti/fp-ts but is a bit an academic style, so difficult to introduce in everyday work. Implementation of pipe:…
comment by Ideabile · 2022-08-07 · in A generically typed pipe function in TypeScript -
…=> C): C function pipe<A, B, C, D>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D): D ... https://github.com/gcanti/fp-ts/blob/master/src/function.ts#...
comment by upzylon · 2022-08-07 · in A generically typed pipe function in TypeScript -
…[1]! It's mentioned at the end of the article, but I want to emphasize just how cool it is. [1] https://github.com/gcanti/fp-ts
comment by benrbray · 2021-08-11 · in Practical introduction to algebraic datatypes (ADTs) in TypeScript -
See https://github.com/gcanti/fp-ts . Heavily haskell-inspired and includes a TS implementation of higher-kinded types.
comment by chrischen · 2021-05-10 · in How JavaScript works: 3 types of polymorphism -
https://github.com/gcanti/fp-ts https://github.com/gcanti/io-ts If you're using TS these are pretty much footgun eliminator.
comment by valand · 2021-04-20 · in What's in the Box? -
…{ data: unknown }`, and discriminated union to indicate success/failure on return. fp-ts ( https://github.com/gcanti/fp-ts ) is my go-to library for this
comment by valand · 2021-02-03 · in Bad TypeScript Habits -
…and A its type parameter. [1]: https://www.cl.cam.ac.uk/~jdy22/papers/lightweight-higher-ki... [2]: https://github.com/gcanti/fp-ts [3]: https://gist.github.com/gcanti/2b455c5008c2e1674ab3e8d5790cd...
comment by zcesur · 2020-11-13 · in Exotic Programming Ideas: Module Systems -
…familiar with functional programming it's going to be hard as the documentation is rather lacking. https://github.com/gcanti/fp-ts/blob/master/src/Option.ts
comment by fyfy18 · 2020-11-01 · in Intent to stop using 'null' in my JS code -
…will further fragment the community. And TypeScript has some pretty attractive functional projects: https://github.com/gcanti/fp-ts https://github.com/Matechs-Garage/matechs-effect [1]: https://reasonml.org/blog/bucklescript-8-1-new-syntax
comment by modernerd · 2020-08-03 · in OCaml for the Skeptical: OCaml in a Nutshell (2006) -
https://github.com/gcanti/fp-ts
comment by orange8 · 2020-04-10 · in The Svelte Compiler Handbook -
…idea that will lead to a backlash, just like the backlashes against XHTML and Java applets. [0] https://github.com/gcanti/fp-ts
comment by orange8 · 2020-04-09 · in How porting to TypeScript solved our API woes -
…it even more enjoyable. [0] https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... [1] https://github.com/gcanti/fp-ts
comment by iaml · 2020-03-20 · in RFC: Adopt a modern JavaScript framework for use with MediaWiki -
…higher kinded types in TypeScript is based on "Lightweight higher-kinded polymorphism" [2]) [1] https://github.com/gcanti/fp-ts [2] https://www.cl.cam.ac.uk/~jdy22/papers/lightweight-higher-ki...
comment by gcanti · 2019-11-04 · in Algebraic Structures: Things I wish someone had explained about FP -
for a functional library that plays nicely with TS check this out: https://github.com/gcanti/fp-ts
comment by gcanti · 2018-07-30 · in Announcing TypeScript 3.0 -
…and ReasonML is quite early stage (a few weeks each) and so would welcome any corrections. --- [1] https://github.com/gcanti/fp-ts [2] https://lorefnon.tech/2018/05/13/reasonml-vs-typescript-firs... [3]…
comment by lf-non · 2018-05-24 · in ReasonML – React as first intended -
working on a fp library for TypeScript if you want to take a look https://github.com/gcanti/fp-ts
comment by gcanti · 2017-07-31 · in Elm in Production: 25K Lines Later