How do I enable language extensions from within GHCi?

坚强是说给别人听的谎言 提交于 2019-11-28 16:56:32

问题


I'm trying to enable XRankNTypes in GHCi. How do I do this?


回答1:


:set -XRankNTypes. The -X part is a compiler switch, by the way, extension is called just RankNTypes.



来源:https://stackoverflow.com/questions/12584884/how-do-i-enable-language-extensions-from-within-ghci

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