[GHC] #9700: Support C structures in Haskell FFI
GHC
ghc-devs at haskell.org
Sun Nov 16 21:34:10 UTC 2014
#9700: Support C structures in Haskell FFI
-------------------------------------+-------------------------------------
Reporter: Yuras | Owner:
Type: feature | Status: new
request | Milestone:
Priority: normal | Version: 7.8.3
Component: Compiler | Keywords:
Resolution: | Architecture: Unknown/Multiple
Operating System: | Difficulty: Unknown
Unknown/Multiple | Blocked By:
Type of failure: | Related Tickets:
None/Unknown |
Test Case: |
Blocking: |
Differential Revisions: Phab:D252 |
-------------------------------------+-------------------------------------
Comment (by svenpanne):
Hmmm, I think the wiki page is confusing C types and Haskell types:
* If one wants to bind to a C structure containing int/char/float/...,
one has to use CInt/CChar/CFloat/... on the Haskell side.
* If one wants to access Haskell stuff containing Int/Char/Float, one
has to use HsInt/HsChar/HsFloat/... on the C side.
Any kind of structure marshaling can't change anything about that, there's
no portable correspondence between the types in both worlds.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9700#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list