\section[Foreign]{Foreign calls}
\begin{code}
+{-# OPTIONS -w #-}
+-- The above warning supression flag is a temporary kludge.
+-- While working on this module you are encouraged to remove it and fix
+-- any warnings in the module. See
+-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings
+-- for details
+
module ForeignCall (
ForeignCall(..),
Safety(..), playSafe, playThreadSafe,
platforms.
\begin{code}
-data CCallConv = CCallConv | StdCallConv
+data CCallConv = CCallConv | StdCallConv | CmmCallConv
deriving (Eq)
{-! derive: Binary !-}
instance Outputable CCallConv where
ppr StdCallConv = ptext SLIT("stdcall")
ppr CCallConv = ptext SLIT("ccall")
+ ppr CmmCallConv = ptext SLIT("C--")
defaultCCallConv :: CCallConv
defaultCCallConv = CCallConv