ghcjs-base-stub-0.1.0.2: Allow GHCJS projects to compile under GHC and develop using intero.

Safe HaskellNone
LanguageHaskell2010

GHCJS.Prim

Synopsis

Documentation

newtype JSVal Source #

Constructors

JSVal () 

data WouldBlockException Source #

If a synchronous thread tries to do something that can only be done asynchronously, and the thread is set up to not continue asynchronously, it receives this exception.

Constructors

WouldBlockException 

fromJSString :: JSVal -> String Source #

Low-level conversion utilities for packages that cannot depend on ghcjs-base

returns an empty string if the JSVal does not contain a string

fromJSInt :: JSVal -> Int Source #

returns zero if the JSVal does not contain a number