X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fmain%2FDynFlags.hs;h=cda06e5f4c9f444cc929b4882f84a8c9f87d0be0;hp=e0aca3307e48da9603bb9df8f6f7d1563362ef68;hb=7d52c74cab50d3c9a5e76be5b97d63b60069bc2e;hpb=aa13a496c2f4d027355002c7103bc38486497b75 diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index e0aca33..cda06e5 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -183,7 +183,17 @@ data DynFlag | Opt_RecordPuns | Opt_GADTs | Opt_RelaxedPolyRec -- -X=RelaxedPolyRec + | Opt_TypeSynonymInstances + | Opt_FlexibleInstances + | Opt_MultiParamTypeClasses + | Opt_FunctionalDependencies | Opt_MagicHash + | Opt_EmptyDataDecls + | Opt_KindSignatures + | Opt_ParallelListComp + | Opt_GeneralizedNewtypeDeriving + | Opt_RecursiveDo + | Opt_PatternGuards -- optimisation opts | Opt_Strictness @@ -1093,11 +1103,16 @@ fFlags = [ -- These -X flags can all be reversed with -Xno- xFlags :: [(String, DynFlag)] xFlags = [ + ( "PatternGuards", Opt_PatternGuards ), ( "MagicHash", Opt_MagicHash ), + ( "KindSignatures", Opt_KindSignatures ), + ( "EmptyDataDecls", Opt_EmptyDataDecls ), + ( "ParallelListComp", Opt_ParallelListComp ), ( "FI", Opt_FFI ), -- support `-ffi'... ( "FFI", Opt_FFI ), -- ...and also `-fffi' ( "ForeignFunctionInterface", Opt_FFI ), + ( "RecursiveDo", Opt_RecursiveDo ), ( "Arrows", Opt_Arrows ), -- arrow syntax ( "Parr", Opt_PArr ), @@ -1122,6 +1137,11 @@ xFlags = [ ( "ExtendedDefaultRules", Opt_ExtendedDefaultRules ), ( "ImplicitParams", Opt_ImplicitParams ), ( "ScopedTypeVariables", Opt_ScopedTypeVariables ), + ( "TypeSynonymInstances", Opt_TypeSynonymInstances ), + ( "FlexibleInstances", Opt_FlexibleInstances ), + ( "MultiParamTypeClasses", Opt_MultiParamTypeClasses ), + ( "FunctionalDependencies", Opt_FunctionalDependencies ), + ( "GeneralizedNewtypeDeriving", Opt_GeneralizedNewtypeDeriving ), ( "AllowOverlappingInstances", Opt_AllowOverlappingInstances ), ( "AllowUndecidableInstances", Opt_AllowUndecidableInstances ), ( "AllowIncoherentInstances", Opt_AllowIncoherentInstances ) @@ -1137,7 +1157,17 @@ glasgowExtsFlags = [ Opt_GlasgowExts , Opt_GADTs , Opt_ImplicitParams , Opt_ScopedTypeVariables + , Opt_TypeSynonymInstances + , Opt_FlexibleInstances + , Opt_MultiParamTypeClasses + , Opt_FunctionalDependencies , Opt_MagicHash + , Opt_PatternGuards + , Opt_RecursiveDo + , Opt_ParallelListComp + , Opt_EmptyDataDecls + , Opt_KindSignatures + , Opt_GeneralizedNewtypeDeriving , Opt_TypeFamilies ] ------------------