There is no such thing as type checker puzzle once you have learned types, just like you don't stop on each word once you're literate.
Static type checking also significantly complicated meta programming, macros and code generation.
But hey I like statically typed languages too. A big fan of Swift which has borrowed many functional ideas. I just don't think static typing is the silver bullet that many of its proponents think.
It works well for some problems, but not all. E.g. I can't think of any statically typed language which can compete with Julia for numerical work and data science.
Haskell e.g. is just terrible at doing numerical work, as it poor at mutation. You can work effectively with lots of big matrices if you don't allow easy access to mutation.
Perhaps you could give us an example of code you want to write that doesn't pass the type checker.
We already know about the case of maps, but it's been pointed out that is solved by row types. A different example would be good.
I fail to see this as a problem. It's pretty much a feature, just as you don't expect object oriented languages to tolerate any shit you throw at them when you use the OO model.
> I just don't think static typing is the silver bullet that many of its proponents think.
You're the one making the case here, before answering it.
> Haskell e.g. is just terrible at doing numerical work
I've had good experience with https://wiki.haskell.org/Numeric_Haskell:_A_Repa_Tutorial
Your analogy doesn't apply.
I can read a book in O(n) time, where n is the number of words in the book. I can read a single word in O(1) time.
When I get a type error, that is not a O(1) fix. The type error is connected to my program in the large and I have to understand/process more than just the single line where the error is called out. The worst case, obviously, is O(n).
> Your analogy doesn't apply.
One would think I am well placed to describe my own experience of interacting with a type system.
[1] Just like having experience in editor shortcuts bear an initial cost to make you more productive forever...