diff options
author | Joachim Breitner <mail@joachim-breitner.de> | 2012-03-12 09:20:12 +0100 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2012-03-14 13:01:18 +0000 |
commit | e29001c9e0f73885c0b85d86c3a854519448013a (patch) | |
tree | eec65332799de2023a3d342c2d3b84aed3ff2671 /rts | |
parent | e562e59a7662010202fafb2edbd34edcaa06e5d2 (diff) | |
download | haskell-e29001c9e0f73885c0b85d86c3a854519448013a.tar.gz |
Allow Any as an argument type to foreign prim functions
Real primops can take boxed arguments, and the Cmm code will receive the
pointer to the object on the Haskell heap, e.g. for unpackClosure#. To
be able to implement such a function in a "foreign prim" call, this
needs to be allowed as well. By only allowing Any here (instead of
arbitrary types), it is clearer that the function will not receive the
value in any marshalled form, but just the raw pointer. Haskell code
using such functions are likely to use unsafeCoerce# to turn a haskell
value into a value of type Any.
Diffstat (limited to 'rts')
0 files changed, 0 insertions, 0 deletions