Data.String (original) (raw)
Contents
Description
The String
type and associated operations.
Synopsis
- type String = [Char]
- class IsString a where
- fromString :: String -> a
- lines :: String -> [String]
- words :: String -> [String]
- unlines :: [String] -> String
- unwords :: [String] -> String
Documentation
class IsString a whereSource
Class for string-like datastructures; used by the overloaded string extension (-foverloaded-strings in GHC).
Functions on strings
lines :: String -> [String]Source
[lines](Data-String.html#v:lines)
breaks a string up into a list of strings at newline characters. The resulting strings do not contain newlines.