Are there any advantages of using Rank2Types in favor of RankNTypes?

≯℡__Kan透↙ 提交于 2019-12-04 22:16:52

Rank2Types is a synonym for RankNTypes. So right now there are no advantages of rank-2 over rank-n.

In principle type checking is decidable for rank 2 types. But, that was never going to be included in GHC (overly complicated, doesn't mix well with other features of the type system). So no. Rank2Types is deprecated (okay, it doesn't give you a warning, but it is) so use RankNTypes.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!