unix-2.7.1.0: POSIX functionality

Copyright | (c) Volker Stolz <vs@foldr.org> 2003
License | BSD-style (see the file libraries/base/LICENSE)
Maintainer | vs@foldr.org
Stability | provisional
Portability | non-portable (requires POSIX)
Safe Haskell | Safe
Language | Haskell2010

System.Posix.DynamicLinker.Module.ByteString

Description

DLOpen support, old API Derived from GModule.chs by M.Weber & M.Chakravarty which is part of c2hs I left the API more or less the same, mostly the flags are different.

# Documentation

data Module

moduleOpen :: RawFilePath -> [RTLDFlags] -> IO Module

moduleSymbol :: Module -> String -> IO (FunPtr a)

moduleClose :: Module -> IO ()

moduleError :: IO String

withModule :: Maybe String -> String -> [RTLDFlags] -> (Module -> IO a) -> IO a

withModule_ :: Maybe String -> String -> [RTLDFlags] -> (Module -> IO a) -> IO ()