Module
Game.Util
- Package
- purescript-game
- Repository
- artemisSystem/purescript-game
#newRef Source
newRef :: forall s m. MonadEffect m => s -> m (Ref s)
#readRef Source
readRef :: forall s m. MonadEffect m => Ref s -> m s
#modifyRef Source
modifyRef :: forall s m. MonadEffect m => (s -> s) -> Ref s -> m s
#modifyRef' Source
modifyRef' :: forall b s m. MonadEffect m => (s -> { state :: s, value :: b }) -> Ref s -> m b
#modifyRef_ Source
modifyRef_ :: forall s m. MonadEffect m => (s -> s) -> Ref s -> m Unit
#durationToNumber Source
durationToNumber :: forall d. Duration d => d -> Number
#nowSeconds Source
nowSeconds :: forall m. MonadEffect m => m Seconds
#maybeThrow Source
maybeThrow :: forall a m. MonadEffect m => String -> Maybe a -> m a