In Haskell programming language, according to https://en.wikibooks.org/wiki/Haskell/Category_theory#Translating_categorical_concepts_into_Haskell
59.2.2 Translating categorical concepts into Haskell
We work in the category
Hask
and its subcategories.Objects are types.
Morphisms are functions.
Things that take a type and return another type are type constructors.
Things that take a function and return another function are higher-order functions.
Typeclasses, along with the polymorphism they provide, make a nice way of capturing the fact that in category theory things are often defined over a number of objects at once.
What concept in category theory is a typeclass represented as? As a subcategory of Hask
?