cvs commit: fptools/ghc/compiler/main CmdLineOpts.lhs DriverFlags.hs
HscMain.lhs ParsePkgConf.y fptools/ghc/compiler/parser Lex.lhs
fptools/ghc/compiler/rename RnHiFiles.lhs fptools/ghc/docs/users_guide
ffi-chap.sgml flags.sgml glasgow_exts.sgml ug-ent.sgml ...
Manuel Chakravarty
chak@glass.cse.ogi.edu
Wed, 15 May 2002 02:00:01 -0700
chak 2002/05/15 02:00:00 PDT
Modified files:
ghc/compiler/main CmdLineOpts.lhs DriverFlags.hs
HscMain.lhs ParsePkgConf.y
ghc/compiler/parser Lex.lhs
ghc/compiler/rename RnHiFiles.lhs
ghc/docs/users_guide ffi-chap.sgml flags.sgml
glasgow_exts.sgml ug-ent.sgml
libraries/base/Foreign/Marshal Alloc.hs Utils.hs
Log:
* Added the options `-ffi' and `-fffi', which switch on FFI support
(`-fglasgow-exts' implies `-fffi').
NB: Strictly speaking `-fffi' is the correct name; however, `-ffi' is
supported as an alternative spelling.
* `-fglasgow-exts' no longer enables the `with' keyword for implicit
parameters. To use `with' as a keyword, the additional option `-fwith' has
to be supplied. (Note that SimonM recently enabled the use of `let' instead
of `with'.)
NB: This might prompt some makefile tweaks in libraries or regression tests.
* Renamed `Foreign.Marshal.Utils.withObject' to `Foreign.Marshal.Utils.with'
as required by the FFI Addendum. (The old name is still available, but
marked as deprecated.)
* Added `realloc' to `Foreign.Marshal.Alloc' (tracking RC4 of the FFI
Addendum).
Docu
~~~~
* Added `-ffi', `-fffi', and `-fwith' to the flag reference and the section
describing options for Glasgow extensions
* Removed most of the FFI section in the User's Guide in favour of a reference
to the Addendum plus a brief description of additional features supported by
GHC.
NB: The old material is still available at fptools/docs/, I merely removed
the reference in the User's Guide.
Revision Changes Path
1.166 +2 -0 fptools/ghc/compiler/main/CmdLineOpts.lhs
1.94 +4 -1 fptools/ghc/compiler/main/DriverFlags.hs
1.161 +6 -0 fptools/ghc/compiler/main/HscMain.lhs
1.8 +2 -0 fptools/ghc/compiler/main/ParsePkgConf.y
1.80 +57 -43 fptools/ghc/compiler/parser/Lex.lhs
1.65 +2 -0 fptools/ghc/compiler/rename/RnHiFiles.lhs
1.8 +72 -35 fptools/ghc/docs/users_guide/ffi-chap.sgml
1.18 +13 -0 fptools/ghc/docs/users_guide/flags.sgml
1.59 +24 -0 fptools/ghc/docs/users_guide/glasgow_exts.sgml
1.12 +0 -1 fptools/ghc/docs/users_guide/ug-ent.sgml
1.10 +15 -2 fptools/libraries/base/Foreign/Marshal/Alloc.hs
1.8 +15 -7 fptools/libraries/base/Foreign/Marshal/Utils.hs