News for hackers. Stuff that matters.
Re:Haskell is not category theory by valcron1000 on Friday February 03, 2023 @05:53PM (#34648960)
This post is literally the "Ackchyually" meme. There is a reason why "fast and loose reasoning is morally correct".
Re:Haskell is not category theory by agalunar on Friday February 03, 2023 @06:15PM (#34649192)
I might be a counterexample to the claim that "this is pedantic and the differences they're mentioning are meaningless in practice". I learned about functors in uni and only later took a look at Haskell. I was genuinely very confused by the naming of Functor: functors map both morphisms and elements, but this isn't the case in Haskell. So I was left wondering whether I had missed something.
Re:Haskell is not category theory by smackmybishop on Friday February 03, 2023 @10:57PM (#34651323)
They actually do. The type constructor maps types to types (which are Hask objects), and `fmap` maps the functions (which are the morphisms).
Re:Haskell is not category theory by agalunar on Saturday February 04, 2023 @05:48PM (#34659261)
ah, sorry! right – the type constructor and fmap together make up a functor.

I meant functors where the objects being mapped aren't types, but type inhabitants, and the morphisms being mapped are not arrows between types, but arrows between type inhabitants. (I suppose this also has to do with "the only category in Haskell is Hask", rather than types also being themselves categories?)

Re:Haskell is not category theory by pema99 on Friday February 03, 2023 @07:01PM (#34649633)
I do actually agree with you. The goal for me was just to understand the connection to CT a bit more precisely, not to imply that it isn't useful. I guess I didn't convey that part very clearly, which together with the tongue-in-cheek title might make me sound like quite a pedant. The post is the culmination of me already knowing Haskell, googling category theory one day, and being utterly confused.
Re:Haskell is not category theory by luuuzeta on Saturday February 04, 2023 @07:29AM (#34653964)
What caught me off guard was the "(uwu)".