Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
ProjectM36.Function
Description
Module for functionality common between the various Function types (AtomFunction, DatabaseContextFunction).
Synopsis
- function :: FunctionBody a -> a
- functionScript :: Function a -> Maybe FunctionBodyScript
- processObjectLoadedFunctionBody :: ObjectModuleName -> ObjectFileEntryFunctionName -> FilePath -> FunctionBody a -> FunctionBody a
- processObjectLoadedFunctions :: Functor f => ObjectModuleName -> ObjectFileEntryFunctionName -> FilePath -> f (Function a) -> f (Function a)
- loadFunctions :: ModName -> FuncName -> Maybe FilePath -> FilePath -> IO (Either LoadSymbolError [Function a])
- functionForName :: FunctionName -> HashSet (Function a) -> Either RelationalError (Function a)
Documentation
function :: FunctionBody a -> a Source #
Return the underlying function to run the Function.
functionScript :: Function a -> Maybe FunctionBodyScript Source #
Return the text-based Haskell script, if applicable.
processObjectLoadedFunctionBody :: ObjectModuleName -> ObjectFileEntryFunctionName -> FilePath -> FunctionBody a -> FunctionBody a Source #
Change atom function definition to reference proper object file source. Useful when moving the object file into the database directory.
processObjectLoadedFunctions :: Functor f => ObjectModuleName -> ObjectFileEntryFunctionName -> FilePath -> f (Function a) -> f (Function a) Source #
loadFunctions :: ModName -> FuncName -> Maybe FilePath -> FilePath -> IO (Either LoadSymbolError [Function a]) Source #
functionForName :: FunctionName -> HashSet (Function a) -> Either RelationalError (Function a) Source #