diff options
| author | Ian Lynagh <igloo@earth.li> | 2012-02-17 15:50:59 +0000 |
|---|---|---|
| committer | Ian Lynagh <igloo@earth.li> | 2012-02-17 17:42:32 +0000 |
| commit | 7b24c3fffecbf9fc219c10f24d1472d0d03da6a1 (patch) | |
| tree | 8cee950382b90353ac6fb8eddb7795bed595a3f5 /compiler/codeGen/CgParallel.hs | |
| parent | 5940bfd20dc9a6ca9b05b2c9743cdccd3cf45e4a (diff) | |
| download | haskell-7b24c3fffecbf9fc219c10f24d1472d0d03da6a1.tar.gz | |
Allow a header to be specified in a CTYPE pragma
You can now say
data {-# CTYPE "some_header.h" "the C type" #-} Foo = ...
I think it's rare that this will actually be needed. If the
header for a CAPI FFI import includes a
void f(ctype x);
prototype then ctype must already be defined.
However, if the header only has
#define f(p) p->j
then the type need not be defined.
But either way, it seems good practice for us to specify the header that
we need.
Diffstat (limited to 'compiler/codeGen/CgParallel.hs')
0 files changed, 0 insertions, 0 deletions
