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

Safe HaskellNone
LanguageHaskell2010

JavaScript.Extras.String

Synopsis

Documentation

strJS :: JSString -> JSVal Source #

This makes it easier to use OverloadedStrings with inputs that accept a JSVal that could be a JSString Less verbose version of'toJS @JSString'

txtJS :: Text -> JSVal Source #

This makes it easier to use OverloadedStrings with inputs that accept a JSVal that could be a Data.Text Less verbose version of'toJS @Text'

strJS' :: [Char] -> JSVal Source #

This makes it easier to use OverloadedStrings with inputs that accept a JSVal that could be a [String] Less verbose version of'toJS @Jtring'