ghcjs-base-0.2.0.0: base library for GHCJS

Safe HaskellNone
LanguageHaskell98

JavaScript.Array.Internal

Documentation

newtype SomeJSArray (m :: MutabilityType s) Source #

Constructors

SomeJSArray JSVal 
Instances
Lookup Int JSArray Source # 
Instance details

Defined in JavaScript.JSON.Types.Internal

IsJSVal (SomeJSArray m) Source # 
Instance details

Defined in JavaScript.Array.Internal

Methods

jsval_ :: SomeJSArray m -> JSVal

type JSArray = SomeJSArray Immutable Source #

type STJSArray s = SomeJSArray (STMutable s) Source #

js_create :: State# s -> (#State# s, SomeJSArray m#) Source #

js_length :: SomeJSArray m -> State# s -> (#State# s, Int#) Source #

js_index :: Int -> SomeJSArray m -> State# s -> (#State# s, JSVal#) Source #

js_setIndex :: Int -> JSVal -> SomeJSArray m -> State# s -> (#State# s, ()#) Source #

js_slice :: Int -> Int -> SomeJSArray m -> State# s -> (#State# s, SomeJSArray m1#) Source #

js_slice1 :: Int -> SomeJSArray m -> State# s -> (#State# s, SomeJSArray m1#) Source #

js_append :: SomeJSArray m0 -> SomeJSArray m1 -> State# s -> (#State# s, SomeJSArray m2#) Source #

js_push :: JSVal -> SomeJSArray m -> State# s -> (#State# s, ()#) Source #

js_pop :: SomeJSArray m -> State# s -> (#State# s, JSVal#) Source #

js_unshift :: JSVal -> SomeJSArray m -> State# s -> (#State# s, ()#) Source #

js_shift :: SomeJSArray m -> State# s -> (#State# s, JSVal#) Source #

js_reverse :: SomeJSArray m -> State# s -> (#State# s, ()#) Source #

js_fromJSArray :: SomeJSArray m -> State# s -> (#State# s, Any#) Source #

js_toJSArray :: Any -> State# s -> (#State# s, SomeJSArray m#) Source #