ForeignCall
- newtype ForeignCall = CCall CCallSpec
- isSafeForeignCall :: ForeignCall -> Bool
- data Safety
- playSafe :: Safety -> Bool
- playInterruptible :: Safety -> Bool
- data CExportSpec = CExportStatic CLabelString CCallConv
- type CLabelString = FastString
- isCLabelString :: CLabelString -> Bool
- pprCLabelString :: CLabelString -> SDoc
- data CCallSpec = CCallSpec CCallTarget CCallConv Safety
- data CCallTarget
- isDynamicTarget :: CCallTarget -> Bool
- data CCallConv
- = CCallConv
- | StdCallConv
- | CmmCallConv
- | PrimCallConv
- defaultCCallConv :: CCallConv
- ccallConvToInt :: CCallConv -> Int
- ccallConvAttribute :: CCallConv -> String
Documentation
newtype ForeignCall Source
Instances
Constructors
PlaySafe | |
PlayInterruptible | |
PlayRisky |
data CExportSpec Source
Constructors
CExportStatic CLabelString CCallConv |
type CLabelString = FastStringSource
Constructors
CCallSpec CCallTarget CCallConv Safety |
data CCallTarget Source
How to call a particular function in C-land.
Constructors
StaticTarget CLabelString (Maybe PackageId) | |
DynamicTarget |
Instances
Constructors
CCallConv | |
StdCallConv | |
CmmCallConv | |
PrimCallConv |
ccallConvToInt :: CCallConv -> IntSource