Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Builtin = Builtin {
- builtinName :: Id
- builtinMinArgs :: Int
- builtinMaxArgs :: Maybe Int
- builtinArgTypes :: [Type]
- builtinReturnType :: Type
- builtinFunction :: [Value] -> MOO Value
- defaults :: [Value] -> [Value] -> [Value]
- booleanDefaults :: [Value] -> [Bool] -> [Bool]
- maybeDefaults :: [Value] -> [Maybe Value]
Documentation
A complete description of a builtin function, including its name, the number and types of required and optional arguments, the return type, and the implementing Haskell function
Builtin | |
|
defaults :: [Value] -> [Value] -> [Value] Source
defaults
optional [
default-values]
generates an argument list
by supplying default-values for any missing from optional.
booleanDefaults :: [Value] -> [Bool] -> [Bool] Source
Generate a list of boolean arguments with the given defaults.