patch applied (cabal): Add compilerExtensions field to Compiler and
make each compiler fill it in
Duncan Coutts
duncan.coutts at worc.ox.ac.uk
Tue Aug 7 13:23:28 EDT 2007
Tue Aug 7 10:06:53 PDT 2007 Duncan Coutts <duncan at haskell.org>
* Add compilerExtensions field to Compiler and make each compiler fill it in
It's just a list of supported extensions and the corresponding compiler flags.
For most compilers this is currently just a static list. For ghc 6.7 and above
we query ghc to find the list of language extensions it supports.
In each case the code has moved out into the compiler-specific modules and the
core code treats it generically.
The extensionsToFlags function has been split into two:
extensionsToFlags which now returns the flags for the supported extensions and
unsupportedExtensions which does what it says it does. This is because the two
roles of the previous function were always used separately, never together.
M ./Distribution/Compiler.hs -134 +18
M ./Distribution/Simple/Configure.hs -2 +2
M ./Distribution/Simple/GHC.hs -10 +47
M ./Distribution/Simple/Hugs.hs -4 +27
M ./Distribution/Simple/JHC.hs -6 +14
M ./Distribution/Simple/NHC.hs -7 +17
More information about the Cvs-libraries
mailing list