summaryrefslogtreecommitdiff
path: root/compiler/codeGen
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-02-17 15:50:59 +0000
committerIan Lynagh <igloo@earth.li>2012-02-17 17:42:32 +0000
commit7b24c3fffecbf9fc219c10f24d1472d0d03da6a1 (patch)
tree8cee950382b90353ac6fb8eddb7795bed595a3f5 /compiler/codeGen
parent5940bfd20dc9a6ca9b05b2c9743cdccd3cf45e4a (diff)
downloadhaskell-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')
0 files changed, 0 insertions, 0 deletions