Make -XTypeFamilies imply -XRelaxedPolyRec (Trac #2944)
authorsimonpj@microsoft.com <unknown>
Tue, 13 Jan 2009 16:27:16 +0000 (16:27 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 13 Jan 2009 16:27:16 +0000 (16:27 +0000)
compiler/main/DynFlags.hs

index f67bb4e..35949f7 100644 (file)
@@ -1790,6 +1790,8 @@ impliedFlags
   = [ (Opt_GADTs,               Opt_RelaxedPolyRec)  -- We want type-sig variables to
                                                      --      be completely rigid for GADTs
 
+    , (Opt_TypeFamilies,        Opt_RelaxedPolyRec)  -- Trac #2944 gives a nice example
+
     , (Opt_ScopedTypeVariables, Opt_RelaxedPolyRec)  -- Ditto for scoped type variables; see
                                                      --      Note [Scoped tyvars] in TcBinds
     , (Opt_ImpredicativeTypes,  Opt_RankNTypes)