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

I think the answer to that question is better understood in the dependently-typed literature. Haskell does not have easily accessible dependent types, but many of the techniques could be translated and would help to answer your question.

Offhandedly, I'd say you could model many categories of interest, but since you're working in a "challenging" of constructive logic there are a lot of limitations on what can be modeled. At the end of the day, your objects will always be Haskell types, but a lot can be encoded in those types.

Again, though, the DT literature is really where people are attacking this question. Haskell's Category is usually just used when there's a meaningful subcategory of Hask that you want to overload composition and identity on.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: