fay-text-0.3: Fay Text type represented as JavaScript strings

Safe HaskellNone

Fay.Text

Description

Module to be shared between server and client.

This module must be valid for both GHC and Fay.

For GHC this is an alias for Data.Text, for Fay it's an opaque data type represented by JavaScript strings.

Documentation

empty :: TextSource

cons :: Char -> Text -> TextSource

snoc :: Text -> Char -> TextSource

append :: Text -> Text -> TextSource

uncons :: Text -> Maybe (Char, Text)Source

head :: Text -> CharSource

last :: Text -> CharSource

tail :: Text -> TextSource

init :: Text -> TextSource

null :: Text -> BoolSource

length :: Text -> IntSource

map :: (Char -> Char) -> Text -> TextSource

intercalate :: Text -> [Text] -> TextSource

intersperse :: Char -> Text -> TextSource

reverse :: Text -> TextSource

toLower :: Text -> TextSource

toUpper :: Text -> TextSource

concat :: [Text] -> TextSource

concatMap :: (Char -> Text) -> Text -> TextSource

any :: (Char -> Bool) -> Text -> BoolSource

all :: (Char -> Bool) -> Text -> BoolSource

maximum :: Text -> CharSource

minimum :: Text -> CharSource