Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

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/