Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Foreign export stubs
Synopsis
- data ForeignStubs
- newtype CHeader = CHeader {
- getCHeader :: SDoc
- newtype CStub = CStub {}
- appendStubC :: ForeignStubs -> CStub -> ForeignStubs
Documentation
data ForeignStubs Source #
Foreign export stubs
NoStubs | We don't have any stubs |
ForeignStubs CHeader CStub | There are some stubs. Parameters: 1) Header file prototypes for "foreign exported" functions 2) C stubs to use when calling "foreign exported" functions |
appendStubC :: ForeignStubs -> CStub -> ForeignStubs Source #