I’m working on a blog post about debugging Haskell type errors for beginners and I’m looking for some realistic examples.
I’d appreciate any interesting examples, but especially:
- examples from open source code, or where you can share all the /relevant/ code
- type errors that were not immediately obvious or even actively tricky to fix
- especially if they were hard to /localize/ (that is, the error message pointed in the wrong place)
- the code involved is reasonably accessible
- “normal” code rather than intense type-level stuff
- dealing with some domain that’s not too intimidating
I’d appreciate some run-of-the-mill errors as much as some especially tricky ones.
Even if a type error doesn’t fit my blog post, it will still give me a better idea about what sort of errors people are running into. Who knows, it might turn into a more advanced blog post or even some sort of tooling improvements in the future. (No promises though, I am super flaky on side projects like this )
Thanks in advance!