javascript-extras-0.5.0.0: Extra javascript functions when using GHCJS

Safe HaskellNone
LanguageHaskell2010

JavaScript.Extras.JSRep

Synopsis

Documentation

newtype JSRep Source #

Wrapper to have a JSVal that also have an IString instance This is helpful when using OverloadedStrings

Constructors

JSRep JSVal 
Instances
Read JSRep #

Injection attack! Use with care

Instance details

Defined in JavaScript.Extras.JSRep.Unsafe

Show JSRep Source # 
Instance details

Defined in JavaScript.Extras.JSRep

Methods

showsPrec :: Int -> JSRep -> ShowS #

show :: JSRep -> String #

showList :: [JSRep] -> ShowS #

IsString JSRep Source # 
Instance details

Defined in JavaScript.Extras.JSRep

Methods

fromString :: String -> JSRep #

Generic JSRep Source # 
Instance details

Defined in JavaScript.Extras.JSRep

Associated Types

type Rep JSRep :: * -> * #

Methods

from :: JSRep -> Rep JSRep x #

to :: Rep JSRep x -> JSRep #

NFData JSRep Source # 
Instance details

Defined in JavaScript.Extras.JSRep

Methods

rnf :: JSRep -> () #

PToJSVal JSRep Source # 
Instance details

Defined in JavaScript.Extras.JSRep

Methods

pToJSVal :: JSRep -> JSVal #

IsJSVal JSRep Source # 
Instance details

Defined in JavaScript.Extras.JSRep

Methods

jsval_ :: JSRep -> JSVal

Newtype JSRep Source # 
Instance details

Defined in JavaScript.Extras.JSRep

Associated Types

type O JSRep :: * #

Methods

pack :: O JSRep -> JSRep #

unpack :: JSRep -> O JSRep #

FromJS JSRep Source # 
Instance details

Defined in JavaScript.Extras.JSRep

ToJS JSRep Source # 
Instance details

Defined in JavaScript.Extras.JSRep

Methods

toJS :: JSRep -> JSVal Source #

type Rep JSRep Source # 
Instance details

Defined in JavaScript.Extras.JSRep

type Rep JSRep = D1 (MetaData "JSRep" "JavaScript.Extras.JSRep" "javascript-extras-0.5.0.0-FnIKV4JEOADEry4bPmAtGd" True) (C1 (MetaCons "JSRep" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 JSVal)))
type O JSRep Source # 
Instance details

Defined in JavaScript.Extras.JSRep

type O JSRep = GO (Rep JSRep)

toJSR :: ToJS a => a -> JSRep Source #