Hacker News new | ask | show | jobs
by paradoja 4694 days ago
I think maybe you misunderstood what the language does. It is compiled not to Haskell itself, but to the type system. No Haskell code is executed when using the interpreter (well, apart from the interpreter's itself), but it is Haskell's types that are... executed? checked? It's as is you made a program using C++ templates, not C++.

Here you have some examples (although it requires some knowledge of Haskell): http://www.haskell.org/haskellwiki/Type_arithmetic

1 comments

I think wishful thinking twisted the title in my head, into reading of a lisp with a type system like Haskell's.
This may be near your wishes: http://docs.racket-lang.org/ts-guide/