Hacker News new | ask | show | jobs
by voxfrege 3954 days ago
Type inference for higher ranks is in fact undecidable, but not type checking. Hence, exactly like in Haskell with RankNTypes, you need to annotate your higher rank functions.

Actually, the Frege compiler employs an algorithm described in Simon Peyton-Jones paper "Practical Type Inference for Higher Ranked Types". Ordinary HM types are inferred, and higher ranked types checked.

1 comments

Thanks. It's great to have basically Haskell on the JVM. I'll give it a try.