2 ms·
Haskell types don't exist at runtime, because you can't check a type at runtime. Any type-checking has to happen at compile time, because that information does
by shakna 9y ago
Haskell types don't exist at runtime, because you can't check a type at runtime.
Any type-checking has to happen at compile time, because that information doesn't make it through.
So, something like Python's isinstance or type functions can't exist.