ghcjs-base-stub-0.3.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 () 
Instances
NFData JSVal Source # 
Instance details

Defined in GHCJS.Internal.Types

Methods

rnf :: JSVal -> () #

FromJSVal JSVal Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal JSVal Source # 
Instance details

Defined in GHCJS.Marshal

PFromJSVal JSVal Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PToJSVal JSVal Source # 
Instance details

Defined in GHCJS.Marshal.Pure

Methods

pToJSVal :: JSVal -> JSVal Source #

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