[commit: ghc] master: Recognise US spelling for specialisation flags. (151edd8)

git at git.haskell.org git at git.haskell.org
Sat Oct 1 21:50:48 UTC 2016


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

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

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

commit 151edd89045c2aed20534c6826711db6a3f253c9
Author: Tim McGilchrist <timmcgil at gmail.com>
Date:   Sat Oct 1 00:28:26 2016 -0400

    Recognise US spelling for specialisation flags.
    
    The user guide says that we allow the user to use `specialise` or
    `specialize` interchangeably but this wasn't the case for the relevant
    flags. This patch adds aliases for the flags which control
    specialisation.
    
    Reviewers: erikd, austin, mpickering, bgamari
    
    Reviewed By: mpickering, bgamari
    
    Subscribers: mpickering, thomie
    
    Differential Revision: https://phabricator.haskell.org/D2542
    
    GHC Trac Issues: #12575


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

151edd89045c2aed20534c6826711db6a3f253c9
 compiler/main/DynFlags.hs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index a972716..cc11d3d 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -3296,7 +3296,9 @@ wWarningFlagsDeps = [
   flagSpec "overflowed-literals"         Opt_WarnOverflowedLiterals,
   flagSpec "overlapping-patterns"        Opt_WarnOverlappingPatterns,
   flagSpec "missed-specialisations"      Opt_WarnMissedSpecs,
+  flagSpec "missed-specializations"      Opt_WarnMissedSpecs,
   flagSpec "all-missed-specialisations"  Opt_WarnAllMissedSpecs,
+  flagSpec "all-missed-specializations"  Opt_WarnAllMissedSpecs,
   flagSpec' "safe"                       Opt_WarnSafe setWarnSafe,
   flagSpec "trustworthy-safe"            Opt_WarnTrustworthySafe,
   flagSpec "tabs"                        Opt_WarnTabs,
@@ -3429,8 +3431,11 @@ fFlagsDeps = [
   flagSpec "shared-implib"                    Opt_SharedImplib,
   flagSpec "spec-constr"                      Opt_SpecConstr,
   flagSpec "specialise"                       Opt_Specialise,
+  flagSpec "specialize"                       Opt_Specialise,
   flagSpec "specialise-aggressively"          Opt_SpecialiseAggressively,
+  flagSpec "specialize-aggressively"          Opt_SpecialiseAggressively,
   flagSpec "cross-module-specialise"          Opt_CrossModuleSpecialise,
+  flagSpec "cross-module-specialize"          Opt_CrossModuleSpecialise,
   flagSpec "static-argument-transformation"   Opt_StaticArgumentTransformation,
   flagSpec "strictness"                       Opt_Strictness,
   flagSpec "use-rpaths"                       Opt_RPath,



More information about the ghc-commits mailing list