web-encodings-0.3.0.9: Encapsulate multiple web encoding in a single package. (deprecated)

Safe HaskellSafe-Infered

Web.Encodings.StringLike

Documentation

class (Eq a, Show a) => StringLike a whereSource

Methods

span :: (Char -> Bool) -> a -> (a, a)Source

null :: a -> BoolSource

concatMap :: (Char -> String) -> a -> aSource

dropWhile :: (Char -> Bool) -> a -> aSource

break :: (Char -> Bool) -> a -> (a, a)Source

cons :: Char -> a -> aSource

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

append :: a -> a -> aSource

intercalate :: a -> [a] -> aSource

isPrefixOf :: a -> a -> BoolSource

take :: Int -> a -> aSource

head :: a -> CharSource

tail :: a -> aSource

init :: a -> aSource

last :: a -> CharSource

empty :: aSource

pack :: String -> aSource

unpack :: a -> StringSource

packUtf8 :: String -> aSource

unpackUtf8 :: ByteString -> Maybe aSource

dropPrefix :: a -> a -> Maybe aSource

dropPrefix' :: a -> a -> aSource

dropQuotes :: a -> aSource

chomp :: a -> aSource

chompStart :: a -> aSource

split :: Char -> a -> [a]Source

splitOneOf :: [Char] -> a -> [a]Source

breakCharsMaybe :: [Char] -> a -> Maybe (a, a)Source

breakCharMaybe :: Char -> a -> Maybe (a, a)Source

breakChar :: Char -> a -> (a, a)Source

breakChars :: [Char] -> a -> (a, a)Source

breakString :: a -> a -> (a, a)Source

takeLine :: a -> (a, a)Source

takeLineMaybe :: a -> Maybe (a, a)Source

takeUntilBlank :: a -> ([a], a)Source

takeUntilBlankMaybe :: a -> Maybe ([a], a)Source

lengthLT :: Int -> a -> BoolSource

lengthGE :: Int -> a -> BoolSource

concatMapUtf8 :: (Char -> String) -> a -> aSource

UTF8 encode each character before passing to concatMap, if appropriate.