Hacker News new | ask | show | jobs
by f7t7ft7 4578 days ago
> The workflow I ended up with was to write a function without any type annotations. Ignore all the red lines of the IDE’s confusion. Compile the code. In the output look for a warning about (Long => Int) return value being ignored in a function returning Unit. Copy (Long => Int) into my code as the return type annotation of my function. Compile again.

That sounds like the most stupid way you could do things.