How do I enable language extensions from within GHCi?

HaskellGhciLanguage Extension

Haskell Problem Overview


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

Haskell Solutions


Solution 1 - Haskell

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMatt FenwickView Question on Stackoverflow
Solution 1 - HaskellCat Plus PlusView Answer on Stackoverflow