String -> [String]

lines :: String -> [String]
base Prelude, base Data.List, base Data.String
lines breaks a string up into a list of strings at newline characters. The resulting strings do not contain newlines.
words :: String -> [String]
base Prelude, base Data.List, base Data.String
words breaks a string up into a list of words, which were delimited by white space.
splitSearchPath :: String -> [FilePath]
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Take a string, split it on the searchPathSeparator character. Follows the recommendations in http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html > Posix: splitSearchPath "File1:File2:File3" == ["File1","File2","File3"] > Posix: splitSearchPath "File1::File2:File3" == ["File1",".","File2","File3"] > Windows: splitSearchPath "File1;File2;File3" == ["File1","File2","File3"] > Windows: splitSearchPath "File1;;File2;File3" == ["File1","File2","File3"]
splitDirectories :: FilePath -> [FilePath]
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Just as splitPath, but don't add the trailing slashes to each element. > splitDirectories "test/file" == ["test","file"] > splitDirectories "/test/file" == ["/","test","file"] > Valid x => joinPath (splitDirectories x) `equalFilePath` x > splitDirectories "" == []
splitPath :: FilePath -> [FilePath]
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Split a path by the directory separator. > concat (splitPath x) == x > splitPath "test//item/" == ["test//","item/"] > splitPath "test/item/file" == ["test/","item/","file"] > splitPath "" == [] > Windows: splitPath "c:\\test\\path" == ["c:\\","test\\","path"] > Posix: splitPath "/file/test" == ["/","file/","test"]
splitRegex :: Regex -> String -> [String]
regex-compat Text.Regex
Splits a string based on a regular expression. The regular expression should identify one delimiter. This does not advance and produces an infinite list of [] if the regex matches an empty string. This misfeature is here to match the behavior of the the original Text.Regex API.
getMultiInput :: MonadCGI m => String -> m [String]
cgi Network.CGI
Get all the values of an input variable, for example from a form. This can be used to get all the values from form controls which allow multiple values to be selected. Example: > vals <- getMultiInput "my_checkboxes"
inits :: [a] -> [[a]]
base Data.List
The inits function returns all initial segments of the argument, shortest first. For example, > inits "abc" == ["","a","ab","abc"]
permutations :: [a] -> [[a]]
base Data.List
The permutations function returns the list of all permutations of the argument. > permutations "abc" == ["abc","bac","cba","bca","cab","acb"]
subsequences :: [a] -> [[a]]
base Data.List
The subsequences function returns the list of all subsequences of the argument. > subsequences "abc" == ["","a","b","ab","c","ac","bc","abc"]
tails :: [a] -> [[a]]
base Data.List
The tails function returns all final segments of the argument, longest first. For example, > tails "abc" == ["abc", "bc", "c",""]
tyconModule :: String -> String
base Data.Data
Gets the module of a type constructor: take *.*.*... before name
tyconUQname :: String -> String
base Data.Data
Gets the unqualified type constructor: drop *.*.*... before name
bold :: String -> String
QuickCheck Test.QuickCheck.Text
normalizeCase :: String -> String
network Network.URI
Case normalization; cf. RFC3986 section 6.2.2.1 NOTE: authority case normalization is not performed
normalizeEscape :: String -> String
network Network.URI
Encoding normalization; cf. RFC3986 section 6.2.2.2
normalizePathSegments :: String -> String
network Network.URI
Path segment normalization; cf. RFC3986 section 6.2.2.4
oneLine :: String -> String
QuickCheck Test.QuickCheck.Text
stringToHtmlString :: String -> String
html Text.Html
stringToHtmlString :: String -> String
xhtml Text.XHtml.Strict
Processing Strings into Html friendly things.

Show more results