ghcjs-base-0.2.0.0: base library for GHCJS

Safe HaskellNone
LanguageHaskell98

GHCJS.Types

Synopsis

Documentation

data JSVal #

Instances
NFData JSVal 
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 #

class IsJSVal a Source #

Instances
IsJSVal JSString Source # 
Instance details

Defined in Data.JSString.Internal.Type

Methods

jsval_ :: JSString -> JSVal

IsJSVal Object Source # 
Instance details

Defined in JavaScript.Object.Internal

Methods

jsval_ :: Object -> JSVal

IsJSVal TextMetrics Source # 
Instance details

Defined in JavaScript.Web.Canvas.Internal

Methods

jsval_ :: TextMetrics -> JSVal

IsJSVal Pattern Source # 
Instance details

Defined in JavaScript.Web.Canvas.Internal

Methods

jsval_ :: Pattern -> JSVal

IsJSVal ImageData Source # 
Instance details

Defined in JavaScript.Web.Canvas.Internal

Methods

jsval_ :: ImageData -> JSVal

IsJSVal Image Source # 
Instance details

Defined in JavaScript.Web.Canvas.Internal

Methods

jsval_ :: Image -> JSVal

IsJSVal Gradient Source # 
Instance details

Defined in JavaScript.Web.Canvas.Internal

Methods

jsval_ :: Gradient -> JSVal

IsJSVal Context Source # 
Instance details

Defined in JavaScript.Web.Canvas.Internal

Methods

jsval_ :: Context -> JSVal

IsJSVal Canvas Source # 
Instance details

Defined in JavaScript.Web.Canvas.Internal

Methods

jsval_ :: Canvas -> JSVal

IsJSVal Location Source # 
Instance details

Defined in JavaScript.Web.Location

Methods

jsval_ :: Location -> JSVal

IsJSVal (Export a) Source # 
Instance details

Defined in GHCJS.Foreign.Export

Methods

jsval_ :: Export a -> JSVal

IsJSVal (Callback a) Source # 
Instance details

Defined in GHCJS.Foreign.Callback.Internal

Methods

jsval_ :: Callback a -> JSVal

IsJSVal (SomeJSArray m) Source # 
Instance details

Defined in JavaScript.Array.Internal

Methods

jsval_ :: SomeJSArray m -> JSVal

jsval :: IsJSVal a => a -> JSVal Source #

data JSString Source #

A wrapper around a JavaScript string

Instances
IsList JSString 
Instance details

Defined in Data.JSString

Associated Types

type Item JSString :: *

Methods

fromList :: [Item JSString] -> JSString #

fromListN :: Int -> [Item JSString] -> JSString #

toList :: JSString -> [Item JSString]

Eq JSString # 
Instance details

Defined in Data.JSString

Data JSString

This instance preserves data abstraction at the cost of inefficiency. See Data.Text for more information

Instance details

Defined in Data.JSString

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSString -> c JSString

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSString

toConstr :: JSString -> Constr

dataTypeOf :: JSString -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSString)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSString)

gmapT :: (forall b. Data b => b -> b) -> JSString -> JSString

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSString -> r

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSString -> r

gmapQ :: (forall d. Data d => d -> u) -> JSString -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSString -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSString -> m JSString

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSString -> m JSString

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSString -> m JSString

Ord JSString # 
Instance details

Defined in Data.JSString

Read JSString # 
Instance details

Defined in Data.JSString

Show JSString # 
Instance details

Defined in Data.JSString

IsString JSString 
Instance details

Defined in Data.JSString

Semigroup JSString # 
Instance details

Defined in Data.JSString

Monoid JSString # 
Instance details

Defined in Data.JSString

NFData JSString Source # 
Instance details

Defined in Data.JSString.Internal.Type

Methods

rnf :: JSString -> ()

IsJSVal JSString Source # 
Instance details

Defined in Data.JSString.Internal.Type

Methods

jsval_ :: JSString -> JSVal

PrintfArg JSString 
Instance details

Defined in Data.JSString

Methods

formatArg :: JSString -> FieldFormatter

parseFormat :: JSString -> ModifierParser

FromJSON JSString Source # 
Instance details

Defined in JavaScript.JSON.Types.Instances

ToJSON JSString Source # 
Instance details

Defined in JavaScript.JSON.Types.Instances

FromJSVal JSString Source # 
Instance details

Defined in GHCJS.Marshal

ToJSVal JSString Source # 
Instance details

Defined in GHCJS.Marshal

PFromJSVal JSString Source # 
Instance details

Defined in GHCJS.Marshal.Pure

PToJSVal JSString Source # 
Instance details

Defined in GHCJS.Marshal.Pure

m ~ Immutable => ResponseType JSString Source # 
Instance details

Defined in JavaScript.Web.XMLHttpRequest

Lookup JSString Object Source # 
Instance details

Defined in JavaScript.JSON.Types.Internal

Lookup JSString Value Source # 
Instance details

Defined in JavaScript.JSON.Types.Internal

type Item JSString 
Instance details

Defined in Data.JSString

type Item JSString = Char

type JSRef a = JSVal Source #

Deprecated: Use JSVal instead, or a more specific newtype wrapper of JSVal

This is a deprecated copmatibility wrapper for the old JSRef type.

See https://github.com/ghcjs/ghcjs/issues/421