Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find a list of all GHC extensions

Tags:

haskell

ghc

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:

  • Google
  • Haskell at wikipedia
  • GHC at wikipedia
  • GHC language features
  • Overload string literals
  • OverloadedStrings
like image 804
yairchu Avatar asked Jun 08 '10 14:06

yairchu


1 Answers

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.

like image 134
GS - Apologise to Monica Avatar answered Oct 07 '22 18:10

GS - Apologise to Monica