Re:GHC 7.6 is now live: poly kinds, dynamic use of cores, nu...
by ocharles on Monday September 10, 2012 @10:36AM
(#4499989)
This is a good example, but I'm not sure it's very real world. You wouldn't really use symbols in this case - you'd specifically introduce a Sanitized type and promote it to the kind level. But I'm picking holes, it's a good example of the power that the new type system gives us :)
With type-level symbols, we could do something like
so that writing code like produces a compile-time error because the types don't match up.