Re:GHC 7.6 is now live: poly kinds, dynamic use of cores, nu...
by ocharles on Friday September 07, 2012 @01:24PM
(#4490167)
Type-level naturals let you express things like "map on a Vector of length n will produce a Vector of length n" and "given an element x and a vector xs of length n, cons x xs will produce a Vector of length (n + 1)". Other functions can inspect these nats and prevent you from taking the head of an empty list, as a very basic example.
[ Parent
| on HN ]
There are no comments on this comment yet.