etamoo

Safe HaskellNone
LanguageHaskell2010

MOO.Builtins.Common

Synopsis

Documentation

data Builtin Source

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

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.

maybeDefaults :: [Value] -> [Maybe Value] Source

Generate an infinite list of arguments where each missing argument is Nothing.