| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
StdLib
Description
Module, that provides data necessary for the standard library support.
Synopsis
- data StdLibFunction = StdLibFunction {
- name :: Identifier
- impl :: StdLibFuncImpl
- type StdLibFuncImpl = [RuntimeValue'] -> StdLibFuncResult
- type StdLibFuncResult = ResultValue (MaybeVoid RuntimeValue', Text)
- stdLibFunctions :: [StdLibFunction]
- stdLibFunctionsMap :: Map Identifier StdLibFuncImpl
- lenFunction :: StdLibFunction
- lenImpl :: StdLibFuncImpl
- printFunction :: StdLibFunction
- printImpl :: StdLibFuncImpl
- printlnFunction :: StdLibFunction
- printlnImpl :: StdLibFuncImpl
- panicFunction :: StdLibFunction
- panicImpl :: StdLibFuncImpl
StdLib functions
data StdLibFunction Source #
StdLib function.
Constructors
| StdLibFunction | |
Fields
| |
type StdLibFuncImpl = [RuntimeValue'] -> StdLibFuncResult Source #
Convenient type alias for stdlib function implementation.
type StdLibFuncResult = ResultValue (MaybeVoid RuntimeValue', Text) Source #
Convenient type alias for stdlib function result.
stdLibFunctions :: [StdLibFunction] Source #
All available stdlib functions.
stdLibFunctionsMap :: Map Identifier StdLibFuncImpl Source #
stdLibFunctions given in map representation for convenience.
StdLib functions implementation
len
lenFunction :: StdLibFunction Source #
len function.
lenImpl :: StdLibFuncImpl Source #
len implementation.
print
printFunction :: StdLibFunction Source #
print function.
printImpl :: StdLibFuncImpl Source #
print implementation.
println
printlnFunction :: StdLibFunction Source #
println function.
printlnImpl :: StdLibFuncImpl Source #
println implementation.
panic
panicFunction :: StdLibFunction Source #
panic function.
panicImpl :: StdLibFuncImpl Source #
panic implementation.