Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
newtype SomeJSArray (m :: MutabilityType s) Source #
type JSArray = SomeJSArray Immutable Source #
type MutableJSArray = SomeJSArray Mutable Source #
type STJSArray s = SomeJSArray (STMutable s) Source #
append :: SomeJSArray m -> SomeJSArray m -> IO (SomeJSArray m1) Source #
fromListIO :: [JSVal] -> IO (SomeJSArray m) Source #
reverse :: MutableJSArray -> IO () Source #
takeIO :: Int -> SomeJSArray m -> IO (SomeJSArray m1) Source #
dropIO :: Int -> SomeJSArray m -> IO (SomeJSArray m1) Source #
unsafeFreeze :: MutableJSArray -> IO JSArray Source #
unsafeThaw :: JSArray -> IO MutableJSArray Source #
js_create :: State# s -> (#State# s, SomeJSArray m#) Source #
js_length :: SomeJSArray m -> State# s -> (#State# s, Int#) Source #
js_lengthPure :: JSArray -> Int 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_fromJSArrayPure :: JSArray -> Any Source #
js_toJSArray :: Any -> State# s -> (#State# s, SomeJSArray m#) Source #
js_toJSArrayPure :: Any -> JSArray Source #