Separate language option handling into 2 phases
authorIan Lynagh <igloo@earth.li>
Sat, 24 Jul 2010 21:20:13 +0000 (21:20 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 24 Jul 2010 21:20:13 +0000 (21:20 +0000)
commit1f4bc1f36380776c68431dbc3b5fa41dd6d2182e
treedf65c3db303bfa4eafbb66d8d8c853dea2644625
parent27286cf2ce6733cbbf008972c6bea30ea2e562ee
Separate language option handling into 2 phases
We now first collect the option instructions (from the commandline,
from pragmas in source files, etc), and then later flatten them into
the list of enabled options. This will enable us to use different
standards (H98, H2010, etc) as a base upon which to apply the
instructions, when we don't know what the base will be when we start
collecting instructions.
compiler/main/DriverPipeline.hs
compiler/main/DynFlags.hs
compiler/typecheck/TcRnMonad.lhs
ghc/InteractiveUI.hs
ghc/Main.hs