Search results

initWasm :: String -> Aff Unit

Initialize the WASM module. Call once at application startup.

initWasm :: String -> Aff Unit

Initialize the WASM module. Call once at application startup.

The URL should point to the generated JavaScript module from wasm-pack. Example: initWasm "./pkg/force_kernel.js"

initWasm :: String -> Aff Unit

Initialize the WASM module. Call once at application startup.

The URL should point to the generated JavaScript module from wasm-pack. Example: initWasm "./pkg/force_kernel.js"

initWASM :: String -> Aff Unit

Initialize the WASM physics engine. Call once at application startup before using Engine.WASM.

Example: initWASM "./pkg/force_kernel.js"

ensureDirExists :: String -> Aff Unit
initWasm :: String -> Aff Unit

Initialize the WASM module. Call once at application startup.

initWasm :: String -> Aff Unit

Initialize the WASM module. Call once at application startup.

The URL should point to the generated JavaScript module from wasm-pack. Example: initWasm "./pkg/force_kernel.js"

loadContents :: String -> Aff Unit

Loads a .env-compatible string into the environment. This is useful when sourcing configuration from somewhere other than a local .env file.

mkdir :: String -> Aff Unit
openURL :: String -> Aff Unit
toastS :: String -> Aff Unit

Sends a toast with content being text.

unlink :: String -> Aff Unit
write :: String -> Aff Unit
debug :: forall m. MonadEffect m => String -> m Unit
error :: forall m. MonadEffect m => String -> m Unit
group :: forall m. MonadEffect m => String -> m Unit
groupCollapsed :: forall m. MonadEffect m => String -> m Unit
info :: forall m. MonadEffect m => String -> m Unit
log :: forall m. MonadEffect m => String -> m Unit
time :: forall m. MonadEffect m => String -> m Unit
timeEnd :: forall m. MonadEffect m => String -> m Unit
timeLog :: forall m. MonadEffect m => String -> m Unit
warn :: forall m. MonadEffect m => String -> m Unit
fail :: forall m. MonadThrow Error m => String -> m Unit
tellLn :: forall m. MonadWriter String m => String -> m Unit
log :: forall a. MonadEffect a => String -> a Unit
quickCheck :: forall p. Testable p => p -> Aff Unit

Runs a Testable with a random seed and 100 inputs.

awaitFinished :: forall s a. Write s a => s -> Aff Unit
awaitReadableOrClosed :: forall s a. Read s a => s -> Aff Unit
awaitWritableOrClosed :: forall s a. Write s a => s -> Aff Unit
parseJSON :: forall a. ReadForeign a => String -> Aff a

Parse JSON from a string

setFont :: forall m. MonadCanvasAction m => String -> m Unit
abort :: forall tx. IDBTransaction tx => tx -> Aff Unit

Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.

cancel :: forall a. Parent a => a -> Aff Unit
change :: forall m. Testable m => String -> m Unit

A convenience specialization of fireEvent, simulating the change event with the given value.

find "input" >> change "some text"
clear :: forall store. IDBObjectStore store => store -> Aff Unit

Deletes all records in store.

clickOn :: forall m. Testable m => String -> m Unit

A convenience function, finding an element by CSS selector and simulating the click event on it.

clickOn "button.t--my-button"
close :: forall db. IDBDatabase db => db -> Aff Unit

Closes the connection once all running transactions have finished.

closePort :: forall a. LateNode a => a -> Aff Unit
cmd_ :: forall m. MonadAff m => String -> m Unit
cmdPipe :: forall m. MonadAff m => String -> m Unit
delay :: forall d. Duration d => d -> Aff Unit
delete :: forall ma. MonadAff ma => String -> ma Unit

Deletes the database called dbName. If the database does not exist this method will still succeed.

Documentation: dexie.org/docs/Dexie/Dexie.delete()

delete :: forall cursor. IDBCursor cursor => cursor -> Aff Unit

Delete the record pointed at by the cursor with a new value.

dive :: forall m. MonadState (List String) m => String -> m Unit
el_ :: forall m. MonadDomBuilder m => String -> m Unit
error :: forall eff m. MonadEff (console :: CONSOLE | eff) m => String -> m Unit
error :: forall m. MonadEffect m => String -> m Unit
fail :: forall m. MonadEffect m => String -> m Unit
gumPager :: forall m. MonadAff m => String -> m Unit