jsaddle-0.9.6.0: Interface for JavaScript that works with GHCJS and GHC
Data.JSString.Internal.Type
newtype JSString Source #
A wrapper around a JavaScript string
Constructors
Defined in Data.JSString
Associated Types
type Item JSString :: Type #
Methods
fromList :: [Item JSString] -> JSString #
fromListN :: Int -> [Item JSString] -> JSString #
toList :: JSString -> [Item JSString] #
Defined in Data.JSString.Internal.Type
(==) :: JSString -> JSString -> Bool #
(/=) :: JSString -> JSString -> Bool #
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 #
compare :: JSString -> JSString -> Ordering #
(<) :: JSString -> JSString -> Bool #
(<=) :: JSString -> JSString -> Bool #
(>) :: JSString -> JSString -> Bool #
(>=) :: JSString -> JSString -> Bool #
max :: JSString -> JSString -> JSString #
min :: JSString -> JSString -> JSString #
readsPrec :: Int -> ReadS JSString #
readList :: ReadS [JSString] #
readPrec :: ReadPrec JSString #
readListPrec :: ReadPrec [JSString] #
showsPrec :: Int -> JSString -> ShowS #
show :: JSString -> String #
showList :: [JSString] -> ShowS #
fromString :: String -> JSString #
(<>) :: JSString -> JSString -> JSString #
sconcat :: NonEmpty JSString -> JSString #
stimes :: Integral b => b -> JSString -> JSString #
mempty :: JSString #
mappend :: JSString -> JSString -> JSString #
mconcat :: [JSString] -> JSString #
toJSON :: JSString -> Value #
toEncoding :: JSString -> Encoding #
toJSONList :: [JSString] -> Value #
toEncodingList :: [JSString] -> Encoding #
parseJSON :: Value -> Parser JSString #
parseJSONList :: Value -> Parser [JSString] #
rnf :: JSString -> () #
Defined in GHCJS.Internal.Types
jsval_ :: JSString -> GHCJSPure JSVal Source #
Defined in Language.Javascript.JSaddle.Value
fromJSVal :: JSVal -> JSM (Maybe JSString) Source #
fromJSValUnchecked :: JSVal -> JSM JSString Source #
fromJSValListOf :: JSVal -> JSM (Maybe [JSString]) Source #
fromJSValUncheckedListOf :: JSVal -> JSM [JSString] Source #
Makes a JavaScript string
toJSVal :: JSString -> JSM JSVal Source #
toJSValListOf :: [JSString] -> JSM JSVal Source #
fromJSString :: JSString -> JSString Source #
If we already have a JSString we are fine
toJSString :: JSString -> JSString Source #
empty :: JSString Source #
O(1) The empty JSString.
JSString
empty_ :: JSString Source #
A non-inlined version of empty.
empty
safe :: Char -> Char Source #
firstf :: (a -> c) -> Maybe (a, b) -> Maybe (c, b) Source #
Apply a function to the first element of an optional pair.