Remove Opt_GADTs and Opt_TypeFamilies from -fglasgow-exts
authorIan Lynagh <igloo@earth.li>
Wed, 6 Oct 2010 12:20:00 +0000 (12:20 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 6 Oct 2010 12:20:00 +0000 (12:20 +0000)
This means most code doesn't get caught by monomorphic local bindings.

compiler/main/DynFlags.hs

index ae683f9..f5cfe74 100644 (file)
@@ -1777,7 +1777,6 @@ glasgowExtsFlags :: [ExtensionFlag]
 glasgowExtsFlags = [
              Opt_ForeignFunctionInterface
            , Opt_UnliftedFFITypes
-           , Opt_GADTs
            , Opt_ImplicitParams
            , Opt_ScopedTypeVariables
            , Opt_UnboxedTuples
@@ -1805,8 +1804,7 @@ glasgowExtsFlags = [
            , Opt_ParallelListComp
            , Opt_EmptyDataDecls
            , Opt_KindSignatures
-           , Opt_GeneralizedNewtypeDeriving
-           , Opt_TypeFamilies ]
+           , Opt_GeneralizedNewtypeDeriving ]
 
 #ifdef GHCI
 -- Consult the RTS to find whether GHC itself has been built profiled