[commit: ghc] master: Introduce and use EnumSet in DynFlags (cc9d574)

git at git.haskell.org git at git.haskell.org
Wed Mar 15 19:25:48 UTC 2017


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

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

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

commit cc9d574a578090d17d1597628e44371003cb19a7
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Wed Mar 15 14:30:33 2017 -0400

    Introduce and use EnumSet in DynFlags
    
    This factors out a repeated pattern found in DynFlags, where we use an
    IntSet and Enum to represent sets of flags.
    
    Requires bump of haddock submodule.
    
    Test Plan: validate
    
    Reviewers: austin, goldfire
    
    Subscribers: rwbarton, thomie, snowleopard
    
    Differential Revision: https://phabricator.haskell.org/D3331


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

cc9d574a578090d17d1597628e44371003cb19a7
 compiler/ghc.cabal.in          |  1 +
 compiler/ghc.mk                |  1 +
 compiler/iface/FlagChecker.hs  |  4 +--
 compiler/main/DynFlags.hs      | 64 ++++++++++++++++++++----------------------
 compiler/parser/Lexer.x        | 12 ++++----
 compiler/typecheck/TcSplice.hs |  7 ++---
 compiler/utils/EnumSet.hs      | 33 ++++++++++++++++++++++
 utils/haddock                  |  2 +-
 8 files changed, 78 insertions(+), 46 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 cc9d574a578090d17d1597628e44371003cb19a7


More information about the ghc-commits mailing list