Ticket #7630 (closed bug: fixed)
FFI: "capi" calling convention doesn't work
Description
According to http://www.haskell.org/ghc/docs/7.6.1/html/users_guide/ffi.html#ffi-capi there is a capi calling convention, but ghc disagrees:
% cat capi.hs
{-# LANGUAGE ForeignFunctionInterface #-}
import Foreign.C
foreign import capi "math.h value M_PI" mPI :: CDouble
main :: IO ()
main = print mPI
% ghc capi.hs
[1 of 1] Compiling Main ( capi.hs, capi.o )
capi.hs:5:16: parse error on input `capi'
Is the documentation wrong?
Change History
Note: See
TracTickets for help on using
tickets.
