In this short video, we give an introduction to typeclasses in Haskell. We talk about what they are and how to use them, as well as how to implement instances of basic typeclasses for your own data types.
Get FP merch that doesn't suck. 👇
https://shop.serokell.io/
Read our blog post covering this topic:
https://serokell.io/blog/haskell-type...
Follow us on social media:
/ serokell
Learn more about us:
https://serokell.io/
https://github.com/serokell
Contact us:
[email protected]
0:00 Intro
0:52 What's a typeclass?
1:10 Example: Num typeclass
1:48 Defining your own typeclass instances
2:32 Deriving a typeclass
2:42 Implementing a typeclass manually
3:17 Basic Haskell typeclasses
3:49 Conclusion