Tue Aug 7 10:06:53 PDT 2007 Duncan Coutts <[EMAIL PROTECTED]>
* 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
_______________________________________________
Cvs-libraries mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-libraries