Follow Cabal change: Use usedExtensions rather than extensions
authorIan Lynagh <igloo@earth.li>
Wed, 20 Oct 2010 10:47:39 +0000 (10:47 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 20 Oct 2010 10:47:39 +0000 (10:47 +0000)
utils/ghc-cabal/ghc-cabal.hs

index fb1c870..cce40c5 100644 (file)
@@ -363,7 +363,7 @@ generate config_args distdir directory
                 variablePrefix ++ "_HC_OPTS = " ++ escape (unwords
                        (   programDefaultArgs ghcProg
                         ++ hcOptions GHC bi
-                        ++ extensionsToFlags (compiler lbi) (extensions bi)
+                        ++ extensionsToFlags (compiler lbi) (usedExtensions bi)
                         ++ programOverrideArgs ghcProg)),
                 variablePrefix ++ "_CC_OPTS = " ++ unwords (ccOptions bi),
                 variablePrefix ++ "_CPP_OPTS = " ++ unwords (cppOptions bi),