Safe Haskell | None |
---|---|
Language | Haskell98 |
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
- defaultCCallConv :: CCallConv
- ccallConvToInt :: CCallConv -> Int
- ccallConvAttribute :: CCallConv -> SDoc
- newtype Header = Header FastString
- data CType = CType (Maybe Header) FastString
Documentation
newtype ForeignCall Source
Instances
Constructors
PlaySafe | |
PlayInterruptible | |
PlayRisky |
playInterruptible :: Safety -> Bool Source
type CLabelString = FastString Source
isCLabelString :: CLabelString -> Bool Source
Constructors
CCallSpec CCallTarget CCallConv Safety |
data CCallTarget Source
How to call a particular function in C-land.
Constructors
StaticTarget CLabelString (Maybe PackageId) Bool | |
DynamicTarget |
Instances
isDynamicTarget :: CCallTarget -> Bool Source
Constructors
CCallConv | |
CApiConv | |
StdCallConv | |
PrimCallConv | |
JavaScriptCallConv |
ccallConvToInt :: CCallConv -> Int Source
Constructors
Header FastString |