string -package:hscolour

Parses and returns the specified string.
string s parses a sequence of characters given by s. Returns the parsed string (i.e. s).
divOrMod    =   string "div"
<|> string "mod"
Consider using string'.
string s parses a sequence of bytes that identically match s. Returns the parsed string (i.e. s). This parser consumes no input if it fails (even if a partial match). Note: The behaviour of this parser is different to that of the similarly-named parser in Parsec, as this one is all-or-nothing. To illustrate the difference, the following parser will fail under Parsec given an input of "for":
string "foo" <|> string "for"
The reason for its failure is that the first branch is a partial match, and will consume the letters 'f' and 'o' before failing. In attoparsec, the above parser will succeed on that input, because the failed first branch will consume nothing.
string s parses a sequence of characters that identically match s. Returns the parsed string (i.e. s). This parser consumes no input if it fails (even if a partial match). Note: The behaviour of this parser is different to that of the similarly-named parser in Parsec, as this one is all-or-nothing. To illustrate the difference, the following parser will fail under Parsec given an input of "for":
string "foo" <|> string "for"
The reason for its failure is that the first branch is a partial match, and will consume the letters 'f' and 'o' before failing. In attoparsec, the above parser will succeed on that input, because the failed first branch will consume nothing.
Match a string exactly.
Generates a string using Range to determine the length. This is a specialization of list, offered for convenience.
A synonym for chunk.
Create an HTML snippet from a ChoiceString.
Match the value for an attribute. For malformed XML we do our best to guess the programmer's intention.
Make an Image from a String. This is an alias for iso10646String since the usual case is that a literal string like "foo" is represented internally as a list of ISO 10646 31 bit characters. Note: Keep in mind that GHC will compile source encoded as UTF-8 but the literal strings, while UTF-8 encoded in the source, will be transcoded to a ISO 10646 31 bit characters runtime representation.
string s parses a sequence of characters given by s. Returns the parsed string (i.e. s).
divOrMod    =   string "div"
<|> string "mod"
Output a string.
Decode a String
>>> input string "\"ABC\""
"ABC"
Text parser for an arbitrary string consisting of possibly multiple tokens.
Preconstructed connection string according to the PostgreSQL format.
Promote a vanilla String into a stream. Note: Each Char is truncated to 8 bits.
The document (string s) concatenates all characters in s using line for newline characters and char for all other characters. It is used instead of text whenever the text contains newline characters.
The document (string s) concatenates all characters in s using line for newline characters and char for all other characters. It is used instead of text whenever the text contains newline characters.