type String = Prelude.String { } #
class IsString a { } #

Methods

fromString :: String -> a
Class for types that can be constructed from a string literal.
lines :: String -> [String] { } #
Break a string into a list of lines, splitting on newlines.
words :: String -> [String] { } #
Break a string into a list of words, splitting on whitespace.
unlines :: [String] -> String { } #
Join lines with newline characters.
unwords :: [String] -> String { } #
Join words with spaces.
showString :: String -> ShowS { } #
Prepend a string to a ShowS function.
showChar :: Char -> ShowS { } #
Prepend a character to a ShowS function.
strip :: String -> String { } #
Remove leading and trailing whitespace.
stripStart :: String -> String { } #
Remove leading whitespace.
stripEnd :: String -> String { } #
Remove trailing whitespace.
splitOn :: String -> String -> [String] { } #
Split a string on a delimiter.
replace :: String -> String -> String -> String { } #
Replace all occurrences of a substring.
justifyLeft :: Int -> Char -> String -> String { } #
Left-justify a string, padding with a character on the right.
justifyRight :: Int -> Char -> String -> String { } #
Right-justify a string, padding with a character on the left.
center :: Int -> Char -> String -> String { } #
Center a string, padding with a character on both sides.
escape :: String -> String { } #
Escape special characters in a string for use in source code.
unescape :: String -> String { } #
Unescape a string with escape sequences.
hexDigit :: Char -> Int { } #
findIndex' :: (a -> Bool) -> [a] -> Maybe Int { } #
Find the index of the first element satisfying a predicate.
tails :: [a] -> [[a]] { } #
Get all suffixes of a list.
break :: (a -> Bool) -> [a] -> ([a], [a]) { } #
Break a list at the first element satisfying a predicate.
instance IsString String { }
instance IsString [Char] { }