FFI.Simple
- Package
- purescript-ffi-simple
- Repository
- garganscript/purescript-ffi-simple
Unsafe functions used for FFI. Not considered part of the public api
Re-exports from FFI.Simple.Functions
#args9 Source
args9 :: forall a b c d e f g h i. a -> b -> c -> d -> e -> f -> g -> h -> i -> PseudoArrayreturns 9 arguments as a PseudoArray
#args8 Source
args8 :: forall a b c d e f g h. a -> b -> c -> d -> e -> f -> g -> h -> PseudoArrayreturns 8 arguments as a PseudoArray
#args7 Source
args7 :: forall a b c d e f g. a -> b -> c -> d -> e -> f -> g -> PseudoArrayreturns 7 arguments as a PseudoArray
#args6 Source
args6 :: forall a b c d e f. a -> b -> c -> d -> e -> f -> PseudoArrayreturns 6 arguments as a PseudoArray
#args5 Source
args5 :: forall a b c d e. a -> b -> c -> d -> e -> PseudoArrayreturns 5 arguments as a PseudoArray
#args4 Source
args4 :: forall a b c d. a -> b -> c -> d -> PseudoArrayreturns 4 arguments as a PseudoArray
#args3 Source
args3 :: forall a b c. a -> b -> c -> PseudoArrayreturns 3 arguments as a PseudoArray
#args2 Source
args2 :: forall a b. a -> b -> PseudoArrayreturns 2 arguments as a PseudoArray
#args10 Source
args10 :: forall a b c d e f g h i j. a -> b -> c -> d -> e -> f -> g -> h -> i -> j -> PseudoArrayreturns 9 arguments as a PseudoArray
#args1 Source
args1 :: forall a. a -> PseudoArrayreturns an argument as a PseudoArray
#applyTo Source
applyTo :: forall f this a b. f -> this -> a -> bApply a function to a this object with the given arguments
#applyMethod' Source
applyMethod' :: forall o a b. o -> String -> a -> bflip applyMethod
#applyMethod Source
applyMethod :: forall o a b. String -> o -> a -> bLookup and apply the method with the given name on the given object to the given this and an array or pseudoarray of arguments
Re-exports from FFI.Simple.Globals
#unsafeGlobal Source
unsafeGlobal :: forall t. String -> tLike global, but for when you're really sure it exists and are
willing to tolerate it being quietly undefined (or plan to use
the Undef module functions)
Re-exports from FFI.Simple.Objects
#setProperty' Source
setProperty' :: forall o v. o -> String -> v -> oflip setProperty
#setProperty Source
setProperty :: forall o v. String -> o -> v -> oSets a property on an object Notes:
- Will probably throw an error if you try to set a readonly property
- Is meant to be used in Effect
#maybeGetProperty' Source
maybeGetProperty' :: forall o v. o -> String -> Maybe vflip maybeGetProperty
#maybeGetProperty Source
maybeGetProperty :: forall o v. String -> o -> Maybe vAttempts to get a property from an object, returning Nothing if it was undefined
#instanceOf Source
instanceOf :: forall a b. a -> b -> BooleanChecks whether an object is an instance of an invokable
#hasOwnProperty Source
hasOwnProperty :: forall o. String -> o -> BooleanDoes this object have the given property itself (i.e. not inherited)?
#getProperty' Source
getProperty' :: forall o v. o -> String -> vflip getProperty
#getProperty Source
getProperty :: forall o v. String -> o -> vGet the property with the given name form the given object
If property does not exist, will be undefined (see F.S.Undef)
#defineProperty' Source
defineProperty' :: forall o v. o -> String -> v -> o#defineProperty Source
defineProperty :: forall o v. String -> o -> v -> oDefines a new readonly property. Useful for e.g. name which is a readonly prop