Functional Programming – 27: Type Class in fp-ts DEMO
2.7K views on YouTube
Type Class is a tool that lets us to group and classify types and type constructors based on the behaviors they exhibit. In this video we will look into how to use fp-ts Higher-kinded types implementation. We will use fp-ts HKT to implement Functor type class. We also look into how to implement Option and Either Functor Type class instances in fp-ts.
In this Video:
– Type Class in fp-ts
– HKT in fp-ts
– Functor Type Class in fp-ts
– Module augmentation in TypeScript
– Interface tricks in TypeScript
Links:
– fp-ts – https://gcanti.github.io/fp-ts/
– Effect-ts – https://effect.website/