Implement "value" imports with the CAPI
authorIan Lynagh <igloo@earth.li>
Sun, 26 Feb 2012 01:46:06 +0000 (01:46 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 26 Feb 2012 13:04:44 +0000 (13:04 +0000)
commitae04bd43a2640e17a9035f170d76dae356082f88
treef17b95d0840f4ee66ee622c03da1a96058ade347
parent9065bdbf5299097263c35f6e389b018806f6753e
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.
15 files changed:
compiler/codeGen/CgForeignCall.hs
compiler/codeGen/StgCmmForeign.hs
compiler/coreSyn/MkExternalCore.lhs
compiler/deSugar/DsCCall.lhs
compiler/deSugar/DsForeign.lhs
compiler/deSugar/DsMeta.hs
compiler/ghci/ByteCodeGen.lhs
compiler/hsSyn/HsDecls.lhs
compiler/parser/ParserCore.y
compiler/parser/RdrHsSyn.lhs
compiler/prelude/ForeignCall.lhs
compiler/rename/RnSource.lhs
compiler/stgSyn/CoreToStg.lhs
compiler/typecheck/TcForeign.lhs
docs/users_guide/ffi-chap.xml