Module

Screeps.FFI

Package
purescript-screeps-classy
Repository
purescript/purescript-screeps

Internal helper module for JavaScript FFI

#unsafeOptField Source

unsafeOptField :: forall val obj. String -> obj -> Maybe val

#unsafeIntField Source

unsafeIntField :: forall obj. String -> obj -> Int

#unsafeField Source

unsafeField :: forall val obj. String -> obj -> val

#unsafeOptField_helper Source

unsafeOptField_helper :: forall r val obj. r -> (val -> r) -> String -> obj -> r

#unsafeGetFieldEff Source

unsafeGetFieldEff :: forall eff val obj. String -> obj -> Eff eff val

#unsafeSetFieldEff Source

unsafeSetFieldEff :: forall eff val obj. String -> obj -> val -> Eff eff Unit

#unsafeDeleteFieldEff Source

unsafeDeleteFieldEff :: forall eff obj. String -> obj -> Eff eff Unit

#runThisEffFn0 Source

runThisEffFn0 :: forall a this eff. String -> this -> Eff eff a

#runThisEffFn1 Source

runThisEffFn1 :: forall b a this eff. String -> this -> a -> Eff eff b

#runThisEffFn2 Source

runThisEffFn2 :: forall c b a this eff. String -> this -> a -> b -> Eff eff c

#runThisEffFn3 Source

runThisEffFn3 :: forall d c b a this eff. String -> this -> a -> b -> c -> Eff eff d

#runThisEffFn4 Source

runThisEffFn4 :: forall e d c b a this eff. String -> this -> a -> b -> c -> d -> Eff eff e

#runThisEffFn5 Source

runThisEffFn5 :: forall f e d c b a this eff. String -> this -> a -> b -> c -> d -> e -> Eff eff f

#runThisEffFn6 Source

runThisEffFn6 :: forall g f e d c b a this eff. String -> this -> a -> b -> c -> d -> e -> f -> Eff eff g

#runThisFn0 Source

runThisFn0 :: forall a this. String -> this -> a

#runThisFn1 Source

runThisFn1 :: forall b a this. String -> this -> a -> b

#runThisFn2 Source

runThisFn2 :: forall c b a this. String -> this -> a -> b -> c

#runThisFn3 Source

runThisFn3 :: forall d c b a this. String -> this -> a -> b -> c -> d

#runThisFn4 Source

runThisFn4 :: forall e d c b a this. String -> this -> a -> b -> c -> d -> e

#runThisFn5 Source

runThisFn5 :: forall f e d c b a this. String -> this -> a -> b -> c -> d -> e -> f

#runThisFn6 Source

runThisFn6 :: forall g f e d c b a this. String -> this -> a -> b -> c -> d -> e -> f -> g

#NullOrUndefined Source

#null Source

null :: forall a. NullOrUndefined a

#undefined Source

undefined :: forall a. NullOrUndefined a

#notNullOrUndefined Source

#isNull Source

isNull :: forall a. NullOrUndefined a -> Boolean

#isUndefined Source

#toMaybeImpl Source

toMaybeImpl :: forall m a. Fn3 (NullOrUndefined a) m (a -> m) m

#toMaybe Source

toMaybe :: forall a. NullOrUndefined a -> Maybe a

#toNullable Source

toNullable :: forall a. Maybe a -> NullOrUndefined a

#toUndefinable Source

toUndefinable :: forall a. Maybe a -> NullOrUndefined a

#JsObject Source

data JsObject :: Type

#selectMaybesImpl Source

selectMaybesImpl :: forall a. (Maybe a -> Boolean) -> (Maybe a -> a) -> a -> JsObject

#selectMaybes Source

selectMaybes :: forall a. a -> JsObject

#instanceOf Source

instanceOf :: forall a. String -> a -> Boolean