In articles or Quora posts about category theory, I often find mentions of the programming language Haskell. I have little knowledge of category theory and even less of programming. Could someone please explain how category theory is important in Haskell?
Category theory is an abstract branch of mathematics and you do not need to learn it before you start writing Haskell code and similarly, you do not need to learn Haskell before you start learning Category theory.
Haskell has a beautiful relationship with Category theory, for example, consider polymorphic functions, when we define some reasonable restrictions, it turns out that they are simply natural transformations on which category theory applies.
Another example is haskells's relation with CCCs. Haskell, at its core is pure typed lambda calculus and lambda expressions can be considered the composition of functions that come with a cartesian closed category.
Once you start dwelling into haskell and category theory, you will develop a concrete understanding of this relationship.