[GHC] #9351: add ability to version symbols .c for packages with C code
GHC
ghc-devs at haskell.org
Wed Jul 23 17:51:39 UTC 2014
#9351: add ability to version symbols .c for packages with C code
-------------------------------------+-------------------------------------
Reporter: slyfox | Owner:
Type: feature | Status: new
request | Milestone:
Priority: normal | Version: 7.8.3
Component: Compiler | Keywords: backpack
Resolution: | Architecture: Unknown/Multiple
Operating System: | Difficulty: Unknown
Unknown/Multiple | Blocked By:
Type of failure: | Related Tickets:
None/Unknown |
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Comment (by hvr):
Fwiw, I'd rather have a macro for the `.hs` part as well than have yet
another FFI calling convention. (it'd be useful in other cases as well, to
have the ability to uniformly transform the ABI-level C symbol name; e.g.
for GMP, all official function names are prefixed by `__g` prefix at the
ABI level)
E.g. something like:
{{{#!hs
foreign import ccall C_PKG_NAME("a.h","get_something") :: IO Int
}}}
This will, however, require a better CPP than the current traditional CPP
mode to work...
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9351#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list