Idris2Doc : JS.Util

JS.Util

(source)
Javascript utilities. If these prove to be useful in
applications, they should eventually go into their
own package.

Reexports

importpublic Control.Monad.Either

Definitions

typeof : a->String
  Inspect the type of a value at runtime by means of
Javascript function `typeof`.

Totality: total
Visibility: export
eqv : a->b->Bool
  Heterogeneous pointer equality. This calls the Javascript
`===` operator internally.

Totality: total
Visibility: export
jsShow : a->String
  Displays a JS value by passing it to `String(...)`.

Totality: total
Visibility: export
consoleLog : HasIOio=>String->io ()
Totality: total
Visibility: export
dataJSErr : Type
Totality: total
Visibility: public export
Constructors:
Caught : String->JSErr
CastErr : String->a->JSErr
IsNothing : String->JSErr
dispErr : JSErr->String
Totality: total
Visibility: export
JSIO : Type->Type
Totality: total
Visibility: public export
interfaceLiftJSIO : (Type->Type) ->Type
Parameters: io
Constraints: HasIO io
Methods:
liftJSIO : JSIOa->ioa

Implementations:
LiftJSIOJSIO
LiftJSIOm=>LiftJSIO (StateTsm)
LiftJSIOm=>LiftJSIO (ReaderTem)
LiftJSIOm=>LiftJSIO (WriterTwm)
LiftJSIOm=>LiftJSIO (RWSTrwwm)
liftJSIO : LiftJSIOio=>JSIOa->ioa
Totality: total
Visibility: public export
runJSWith : Lazy (JSErr->IOa) ->JSIOa->IOa
Totality: total
Visibility: export
runJS : JSIO () ->IO ()
Totality: total
Visibility: export
runJSWithDefault : Lazy a->JSIOa->IOa
Totality: total
Visibility: export
primJS : PrimIOa->JSIOa
Totality: total
Visibility: export
unMaybe : String->JSIO (Maybea) ->JSIOa
Totality: total
Visibility: export
tryIO : IOa->JSIOa
  Tries to execute an IO action, wrapping any runtime exception
in its stringified version in a `Left . Caught`.

Totality: total
Visibility: export
try : (a->b) ->a->EitherJSErrb
  Error handling in pure functions. This should only be used
in foreign function calls that might fail but or otherwise
pure calculations.

Totality: total
Visibility: export
dataWindowProxy : Type
  See [spec](https://html.spec.whatwg.org/#windowproxy)

Totality: total
Visibility: export
Hints:
FromFFIWindowProxyWindowProxy
ToFFIWindowProxyWindowProxy