Safe Haskell | None |
---|---|
Language | Haskell2010 |
JavaScript.Array.Internal
Synopsis
- newtype SomeJSArray (m :: MutabilityType s) = SomeJSArray JSVal
- type JSArray = SomeJSArray Immutable
- type MutableJSArray = SomeJSArray Mutable
- type STJSArray (s1 :: s) = SomeJSArray ('STMutable s1)
- create :: JSM MutableJSArray
- fromList :: forall (m :: MutabilityType Type). [JSVal] -> GHCJSPure (SomeJSArray m)
- fromListIO :: forall (m :: MutabilityType Type). [JSVal] -> JSM (SomeJSArray m)
- toList :: forall (m :: MutabilityType Type). SomeJSArray m -> GHCJSPure [JSVal]
- toListIO :: forall (m :: MutabilityType Type). SomeJSArray m -> JSM [JSVal]
- index :: forall (m :: MutabilityType Type). Int -> SomeJSArray m -> GHCJSPure JSVal
- read :: forall (m :: MutabilityType Type). Int -> SomeJSArray m -> JSM JSVal
- push :: JSVal -> MutableJSArray -> JSM ()
Documentation
newtype SomeJSArray (m :: MutabilityType s) Source #
Constructors
SomeJSArray JSVal |
Instances
IsJSVal (SomeJSArray m) Source # | |
Defined in Language.Javascript.JSaddle.Types |
type MutableJSArray = SomeJSArray Mutable Source #
See MutableJSArray
fromList :: forall (m :: MutabilityType Type). [JSVal] -> GHCJSPure (SomeJSArray m) Source #
fromListIO :: forall (m :: MutabilityType Type). [JSVal] -> JSM (SomeJSArray m) Source #
toList :: forall (m :: MutabilityType Type). SomeJSArray m -> GHCJSPure [JSVal] Source #
toListIO :: forall (m :: MutabilityType Type). SomeJSArray m -> JSM [JSVal] Source #
index :: forall (m :: MutabilityType Type). Int -> SomeJSArray m -> GHCJSPure JSVal Source #
read :: forall (m :: MutabilityType Type). Int -> SomeJSArray m -> JSM JSVal Source #