How do I enable language extensions from within GHCi?
-
03-07-2021 - |
Question
I'm trying to enable XRankNTypes
in GHCi. How do I do this?
Solution
:set -XRankNTypes
. The -X
part is a compiler switch, by the way, extension is called just RankNTypes
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow