Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
newtype SomeJSArray m Source
type JSArray = SomeJSArray Immutable Source
type MutableJSArray = SomeJSArray Mutable Source
type STJSArray s = SomeJSArray (STMutable s) Source
lengthIO :: SomeJSArray m -> IO Int Source
append :: SomeJSArray m -> SomeJSArray m -> IO (SomeJSArray m1) Source
fromListIO :: [JSVal] -> IO (SomeJSArray m) Source
toListIO :: SomeJSArray m -> IO [JSVal] Source
push :: JSVal -> MutableJSArray -> IO () Source
pop :: MutableJSArray -> IO JSVal Source
unshift :: JSVal -> MutableJSArray -> IO () Source
shift :: MutableJSArray -> IO JSVal Source
reverse :: MutableJSArray -> IO () Source
takeIO :: Int -> SomeJSArray m -> IO (SomeJSArray m1) Source
dropIO :: Int -> SomeJSArray m -> IO (SomeJSArray m1) Source
freeze :: MutableJSArray -> IO JSArray Source
thaw :: JSArray -> IO MutableJSArray Source
unsafeThaw :: JSArray -> IO MutableJSArray Source
js_create :: State# s -> (#State# s, SomeJSArray m#) Source
js_indexPure :: Int -> JSArray -> JSVal 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_slice1Pure :: Int -> JSArray -> JSArray Source
js_append :: SomeJSArray m0 -> SomeJSArray m1 -> State# s -> (#State# s, SomeJSArray m2#) Source
js_unshift :: JSVal -> SomeJSArray m -> State# s -> (#State# s, ()#) 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