Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data CParts = CParts {}
- asLibrary :: CParts -> (Text, Text, Text)
- asExecutable :: CParts -> Text
- asServer :: CParts -> Text
- data JSEntryPoint = JSEntryPoint {
- name :: String
- parameters :: [EntryPointType]
- ret :: [EntryPointType]
- emccExportNames :: [JSEntryPoint] -> [String]
- javascriptWrapper :: [JSEntryPoint] -> Text
- extToString :: ExternalValue -> String
- runServer :: Text
- libraryExports :: Text
Documentation
The result of compilation to C is multiple parts, which can be put together in various ways. The obvious way is to concatenate all of them, which yields a CLI program. Another is to compile the library part by itself, and use the header file to call into it.
asLibrary :: CParts -> (Text, Text, Text) Source #
Produce header, implementation, and manifest files.
asExecutable :: CParts -> Text Source #
As executable with command-line interface.
data JSEntryPoint Source #
JSEntryPoint | |
|
emccExportNames :: [JSEntryPoint] -> [String] Source #
javascriptWrapper :: [JSEntryPoint] -> Text Source #
extToString :: ExternalValue -> String Source #