Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The only thing I can think of that's wrong with Haskell's functors is that they're more specifically endofunctors, or am I missing something else?


And Hask is arguably not a proper category


Can you expand on this? I'm genuinely curious.


My understanding is that it's not a proper category due to the presence of Bottom - https://wiki.haskell.org/Bottom

> Bottom is a member of any type, even the trivial type () [...] If it were not, the compiler could solve the halting problem and statically determine whether any computation terminated

You can imagine function composition and identity don't work too well on things that never complete.


Ah yes, you're right. I always forget about bottom.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: