• Ben Gamari's avatar
    Expose enabled language extensions to TH · c1e25536
    Ben Gamari authored
    This exposes `template-haskell` functions for querying the language
    extensions which are enabled when compiling a module,
    
    - an `isExtEnabled` function to check whether an extension is enabled
    - an `extsEnabled` function to obtain a full list of enabled extensions
    
    To avoid code duplication this adds a `GHC.LanguageExtensions` module to
    `ghc-boot` and moves `DynFlags.ExtensionFlag` into it. A happy
    consequence of this is that the ungainly `DynFlags` lost around 500
    lines. Moreover, flags corresponding to language extensions are now
    clearly distinguished from other flags due to the `LangExt.*` prefix.
    
    Updates haddock submodule.
    
    This fixes #10820.
    
    Test Plan: validate
    
    Reviewers: austin, spinda, hvr, goldfire, alanz
    
    Reviewed By: goldfire
    
    Subscribers: mpickering, RyanGlScott, hvr, simonpj, thomie
    
    Differential Revision: https://phabricator.haskell.org/D1200
    
    GHC Trac Issues: #10820
    c1e25536
Name
Last commit
Last update
.arc-linters Loading commit data...
bindisttest Loading commit data...
compiler Loading commit data...
distrib Loading commit data...
docs Loading commit data...
driver Loading commit data...
ghc Loading commit data...
includes Loading commit data...
inplace Loading commit data...
libffi Loading commit data...
libffi-tarballs @ ec37a688 Loading commit data...
libraries Loading commit data...
mk Loading commit data...
nofib @ a5995850 Loading commit data...
rts Loading commit data...
rules Loading commit data...
testsuite Loading commit data...
utils Loading commit data...
.arcconfig Loading commit data...
.arclint Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
ANNOUNCE Loading commit data...
HACKING.md Loading commit data...
INSTALL.md Loading commit data...
LICENSE Loading commit data...
MAKEHELP.md Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
Vagrantfile Loading commit data...
aclocal.m4 Loading commit data...
boot Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure.ac Loading commit data...
ghc.mk Loading commit data...
install-sh Loading commit data...
packages Loading commit data...
settings.in Loading commit data...
validate Loading commit data...