Re:Rob Pike: Simplicity Is Complicated [video]
by tome on Thursday December 03, 2015 @06:56AM
(#10669121)
Are you saying something like "All type constructors are functorial Hask^n x Hask^op^m -> Hask"?
[ Parent
| on HN ]
Re:Rob Pike: Simplicity Is Complicated [video]
by catnaroek on Thursday December 03, 2015 @07:02AM
(#10669142)
It's something weaker. Consider the groupoid of Haskell types and isomorphisms. Without GADTs and type families, all type constructors of kind `* -> *` are endofunctors on this groupoid.
Note 1: And there are higher-kinded analogues, but I hope you get the idea from this.
Note 2: There are also exceptions, like `IORef` and friends.