Is there any way to parametrize a type by a value, rather than another type? 
What I would like to do is to define "list of length 3" and "list of length 
4" as separate parametrization of the same type, such that I could write 
functions that accept lists (under my new typename) of any length as long as 
parameters have the same length. The goal is to remove the need for runtime 
checks all over the code.

Konrad.

_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to