[commit: ghc] master: ghc: allow --show-options and --interactive together (624a7c5)

git at git.haskell.org git at git.haskell.org
Fri Nov 21 23:05:03 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/624a7c5a2eee0c0ba486a45550680052c2c79849/ghc

>---------------------------------------------------------------

commit 624a7c5a2eee0c0ba486a45550680052c2c79849
Author: Lennart Kolmodin <kolmodin at gmail.com>
Date:   Fri Nov 21 15:31:54 2014 -0600

    ghc: allow --show-options and --interactive together
    
    Summary:
    Previously 'ghc --show-options' showed all options that GHC can possibly
    accept. With this patch, it'll only show the options that have effect in
    non-interactive modes.
    This change also adds support for using 'ghc --interactive --show-options'
    which previously was disallowed. This command will show all options that have
    effect in the interactive mode.
    The CmdLineParser is updated to know about the GHC modes, and then each flag
    is annotated with which mode it has effect.
    This fixes #9259.
    
    Test Plan:
    Try out --show-options with --interactive on the command line. With and without
    --interactive should give different results.
    Run the test suite, mode001 has been updated to verify this new flag
    combination.
    
    Reviewers: austin, jstolarek
    
    Reviewed By: austin, jstolarek
    
    Subscribers: jstolarek, thomie, carter, simonmar
    
    Differential Revision: https://phabricator.haskell.org/D337
    
    GHC Trac Issues: #9259


>---------------------------------------------------------------

624a7c5a2eee0c0ba486a45550680052c2c79849
 compiler/main/CmdLineParser.hs        |   28 +-
 compiler/main/DynFlags.hs             | 1218 +++++++++++++++++----------------
 compiler/main/StaticFlags.hs          |    8 +-
 compiler/typecheck/TcDeriv.lhs        |    2 +-
 docs/users_guide/flags.xml            |   20 -
 docs/users_guide/using.xml            |   29 -
 ghc/InteractiveUI.hs                  |   22 +-
 ghc/Main.hs                           |   92 +--
 testsuite/tests/driver/Makefile       |    2 +
 testsuite/tests/driver/T4437.hs       |    2 +-
 testsuite/tests/driver/mode001.stdout |    2 +
 11 files changed, 732 insertions(+), 693 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 624a7c5a2eee0c0ba486a45550680052c2c79849


More information about the ghc-commits mailing list