diff options
| author | Ian Lynagh <igloo@earth.li> | 2010-03-02 20:20:35 +0000 | 
|---|---|---|
| committer | Ian Lynagh <igloo@earth.li> | 2010-03-02 20:20:35 +0000 | 
| commit | e9f9ec1e57d53b9302a395ce0d02c0fa59e28341 (patch) | |
| tree | 6961051bd039606541aaa09854e26810b1aee54d /compiler/main | |
| parent | a3a7bba7445be24db313f89eb558b3c0fd55ed6e (diff) | |
| download | haskell-e9f9ec1e57d53b9302a395ce0d02c0fa59e28341.tar.gz | |
Add transitional rules for the alternative layout rule
If enabled, these accept more layout, but give warnings
Diffstat (limited to 'compiler/main')
| -rw-r--r-- | compiler/main/DynFlags.hs | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index abef731fb0..3a4f625d44 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -184,6 +184,7 @@ data DynFlag     | Opt_WarnLazyUnliftedBindings     | Opt_WarnUnusedDoBind     | Opt_WarnWrongDoBind +   | Opt_WarnAlternativeLayoutRuleTransitional     -- language opts @@ -252,6 +253,7 @@ data DynFlag     | Opt_NewQualifiedOperators     | Opt_ExplicitForAll     | Opt_AlternativeLayoutRule +   | Opt_AlternativeLayoutRuleTransitional     | Opt_PrintExplicitForalls @@ -930,7 +932,8 @@ standardWarnings          Opt_WarnDuplicateExports,          Opt_WarnLazyUnliftedBindings,          Opt_WarnDodgyForeignImports, -        Opt_WarnWrongDoBind +        Opt_WarnWrongDoBind, +        Opt_WarnAlternativeLayoutRuleTransitional        ]  minusWOpts :: [DynFlag] @@ -1464,6 +1467,7 @@ fFlags = [      const $ Deprecated "lazy unlifted bindings will be an error in GHC 6.14, and this flag will no longer exist"),    ( "warn-unused-do-bind",              Opt_WarnUnusedDoBind, const Supported ),    ( "warn-wrong-do-bind",               Opt_WarnWrongDoBind, const Supported ), +  ( "warn-alternative-layout-rule-transitional", Opt_WarnAlternativeLayoutRuleTransitional, const Supported ),    ( "print-explicit-foralls",           Opt_PrintExplicitForalls, const Supported ),    ( "strictness",                       Opt_Strictness, const Supported ),    ( "specialise",                       Opt_Specialise, const Supported ), @@ -1601,6 +1605,7 @@ xFlags = [    ( "MonoPatBinds",                     Opt_MonoPatBinds, const Supported ),    ( "ExplicitForAll",                   Opt_ExplicitForAll, const Supported ),    ( "AlternativeLayoutRule",            Opt_AlternativeLayoutRule, const Supported ), +  ( "AlternativeLayoutRuleTransitional",Opt_AlternativeLayoutRuleTransitional, const Supported ),    ( "MonoLocalBinds",                   Opt_MonoLocalBinds, const Supported ),    ( "RelaxedPolyRec",                   Opt_RelaxedPolyRec, const Supported ),    ( "ExtendedDefaultRules",             Opt_ExtendedDefaultRules, const Supported ),  | 
