Where can I find a list of all GHC extensions

yairchu picture yairchu · Jun 8, 2010 · Viewed 8.9k times · Source

I wanted to use {-# LANGUAGE OverloadedStrings #-} but I forgot how it's called. This kind of thing isn't hoogle-able, and also it takes some time finding using google*.

Is there somewhere a list of GHC extensions named as they are in the LANGUAGE pragma?

* My googling search journey:

Answer

GS - Apologise to Monica picture GS - Apologise to Monica · Jun 8, 2010

ghci's tab-completion knows. Type :set -X at a ghci prompt, then hit Tab, and you'll get a full list. Or :set -XFoo then Tab will get you a list of all extensions beginning with Foo.