
Is there any way to parametrize a type by a value, rather than another type?
I believe the following web page answers your question: http://pobox.com/~oleg/ftp/Haskell/number-parameterized-types.html It uses parameterization by decimal numbers -- which seem more natural to read.
It would be interesting to know if/how you could, e.g., define a concatenation function with a type like
Yes, you can -- and the page referenced above does that.

On Wednesday 06 August 2003 02:28, oleg@pobox.com wrote:
Is there any way to parametrize a type by a value, rather than another type?
I believe the following web page answers your question:
http://pobox.com/~oleg/ftp/Haskell/number-parameterized-types.html
Thank you very much for that link, that discusses exactly my problem! Konrad.
participants (2)
-
Konrad Hinsen
-
oleg@pobox.com