r/functionalprogramming • u/kinow mod • Feb 04 '23
Category Theory Haskell is not category theory
https://pema.dev/2023/02/01/haskell-not-ct/
25
Upvotes
r/functionalprogramming • u/kinow mod • Feb 04 '23
6
u/teepee33 Feb 04 '23
Saving this for my future self who will have learned enough to understand this
5
u/uppercase_lambda Feb 04 '23
Yes, I agree that it's far more helpful to think of Haskell typeclasses as inspired by category theory, rather than built on it. Sometimes I wonder if it is useful to know category theory for day-to-day Haskell, or does if it sometimes work against us?
4
u/mobotsar Feb 04 '23
I concur. The co-optation and subsequent narrowing of categorial terms by functional programmers has been an endless source of irritation for me.
1
u/kinow mod Feb 04 '23
HackerNews thread: https://news.ycombinator.com/item?id=34640381
1
u/Zyansheep Feb 04 '23
something something something endofunctor....