Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- getBuiltins :: IO Dictionary
- getLocals :: IO (Maybe Dictionary)
- getGlobals :: IO (Maybe Dictionary)
- getFrame :: IO (Maybe SomeObject)
- getFunctionName :: Object func => func -> IO Text
- getFunctionDescription :: Object func => func -> IO Text
Documentation
getBuiltins :: IO Dictionary Source #
Return a Dictionary
of the builtins in the current execution frame,
or the interpreter of the thread state if no frame is currently executing.
Return a Dictionary
of the local variables in the current execution
frame, or Nothing
if no frame is currently executing.
getGlobals :: IO (Maybe Dictionary) Source #
Return a Dictionary
of the global variables in the current execution
frame, or Nothing
if no frame is currently executing.
getFrame :: IO (Maybe SomeObject) Source #
Return the current thread state's frame, which is Nothing
if no frame
is currently executing.
getFunctionName :: Object func => func -> IO Text Source #
Return the name of func if it is a function, class or instance object, else the name of func's type.
getFunctionDescription :: Object func => func -> IO Text Source #
Return a description string, depending on the type of func. Return
values include "()"
for functions and methods, "constructor"
,
"instance"
, and "object"
. Concatenated with the result of
getFunctionName
, the result will be a description of func.