|
|
|
|
|
by mafribe
3959 days ago
|
|
Thanks. Type inference for types of rank > 2 is undecidable, how does this go together with the claim that Frege has type inference?
I'm not a Haskell expert, but I think the {-# LANGUAGE RankNTypes #-}
extension enables HRTs in Haskell too. |
|
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.