Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master
http://hackage.haskell.org/trac/ghc/changeset/ae04bd43a2640e17a9035f170d76dae356082f88 >--------------------------------------------------------------- commit ae04bd43a2640e17a9035f170d76dae356082f88 Author: Ian Lynagh <[email protected]> Date: Sun Feb 26 01:46:06 2012 +0000 Implement "value" imports with the CAPI This allows us to import values (i.e. non-functions) with the CAPI. This means we can access values even if (on some or all platforms) they are simple #defines. compiler/codeGen/CgForeignCall.hs | 4 +++- compiler/codeGen/StgCmmForeign.hs | 4 +++- compiler/coreSyn/MkExternalCore.lhs | 4 +++- compiler/deSugar/DsCCall.lhs | 2 +- compiler/deSugar/DsForeign.lhs | 10 +++++++--- compiler/deSugar/DsMeta.hs | 5 +++-- compiler/ghci/ByteCodeGen.lhs | 4 +++- compiler/hsSyn/HsDecls.lhs | 7 +++++-- compiler/parser/ParserCore.y | 2 +- compiler/parser/RdrHsSyn.lhs | 20 +++++++++++++++----- compiler/prelude/ForeignCall.lhs | 22 +++++++++++++++------- compiler/rename/RnSource.lhs | 4 ++-- compiler/stgSyn/CoreToStg.lhs | 2 +- compiler/typecheck/TcForeign.lhs | 7 ++++++- docs/users_guide/ffi-chap.xml | 22 ++++++++++++++++++++-- 15 files changed, 88 insertions(+), 31 deletions(-) Diff suppressed because of size. To see it, use: git show ae04bd43a2640e17a9035f170d76dae356082f88 _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
