Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype ObjectFile = ObjectFile (Ptr ObjectFile)
- disposeObjectFile :: ObjectFile -> IO ()
- createObjectFile :: FilePath -> IO ObjectFile
- withObjectFile :: FilePath -> (ObjectFile -> IO a) -> IO a
Documentation
newtype ObjectFile Source #
disposeObjectFile :: ObjectFile -> IO () Source #
Dispose of an ObjectFile
.
createObjectFile :: FilePath -> IO ObjectFile Source #
Create a object file which can later be linked with the
LinkingLayer
.
Note that the file at path
should already be a compiled object file i.e a
`.o` file. This does *not* compile source files.
withObjectFile :: FilePath -> (ObjectFile -> IO a) -> IO a Source #
bracket
-style wrapper for createObjectFile
and disposeObjectFile
.