X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fmain%2FDynFlags.hs;h=85554cbafafbbd272243fe4ba65064cbd0308314;hp=2971aa11cacc231e3fee5544b0b0e9d833c9d550;hb=0cbdc7b1bd76c61ad31a14a43398ae05ce138489;hpb=320738062c7a81f062c5adab98a1a1c4fdbd4bc7 diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index 2971aa1..85554cb 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -305,6 +305,7 @@ data ExtensionFlag | Opt_GADTs | Opt_RelaxedPolyRec | Opt_NPlusKPatterns + | Opt_DoAndIfThenElse | Opt_StandaloneDeriving | Opt_DeriveDataTypeable @@ -742,9 +743,10 @@ defaultDynFlags = log_action = \severity srcSpan style msg -> case severity of - SevInfo -> printErrs (msg style) - SevFatal -> printErrs (msg style) - _ -> do + SevOutput -> printOutput (msg style) + SevInfo -> printErrs (msg style) + SevFatal -> printErrs (msg style) + _ -> do hPutChar stderr '\n' printErrs ((mkLocMessage srcSpan msg) style) -- careful (#2302): printErrs prints in UTF-8, whereas @@ -813,6 +815,7 @@ languageExtensions (Just Haskell2010) Opt_EmptyDataDecls, Opt_ForeignFunctionInterface, Opt_PatternGuards, + Opt_DoAndIfThenElse, Opt_RelaxedPolyRec] -- The DOpt class is a temporary workaround, to avoid having to do @@ -1772,6 +1775,7 @@ xFlags = [ ( "BangPatterns", Opt_BangPatterns, const Supported ), ( "MonomorphismRestriction", Opt_MonomorphismRestriction, const Supported ), ( "NPlusKPatterns", Opt_NPlusKPatterns, const Supported ), + ( "DoAndIfThenElse", Opt_DoAndIfThenElse, const Supported ), ( "MonoPatBinds", Opt_MonoPatBinds, const Supported ), ( "ExplicitForAll", Opt_ExplicitForAll, const Supported ), ( "AlternativeLayoutRule", Opt_AlternativeLayoutRule, const Supported ),