Char -pretty
The character type Char is an enumeration whose values represent Unicode (or equivalently ISO/IEC 10646) characters (see http://www.unicode.org/ for details). This set extends the ISO 8859-1 (Latin-1) character set (the first 256 charachers), which is itself an extension of the ASCII character set (the first 128 characters). A character literal in Haskell has type Char.
To convert a Char to or from the corresponding Int value defined by Unicode, use Prelude.toEnum and Prelude.fromEnum from the Prelude.Enum class respectively (or equivalently ord and chr).
Character literal
Parses and returns the specified character.
Determines whether a character can be accurately encoded in a CString. Unrepresentable characters are converted to '?'.
Currently only Latin-1 characters are representable.
The Char type and associated operations.
char c parses a single character c. Returns the parsed character (i.e. c).
> semiColon = char ';'
This lexeme parser parses a single literal character. Returns the literal character value. This parsers deals correctly with escape sequences. The literal character is parsed according to the grammar rules defined in the Haskell report (which matches most programming languages quite closely).
Fast unicode character sets based on complemented PATRICIA tries
Version 0.3.2
Mozilla have developed a robust and efficient character set detection algorithm for use in their web browsers. The algorithm is able to detect all of the most frequently encountered character encodings totally automatically.
This library wraps up their library and exposes a very simple Haskell interface to it. The library is portable, and is confirmed to work on both Unix and Windows.
Version 1.0
A library for generating 2D Charts and Plots, based upon the cairo graphics library.
Version 0.15
Utility functions for using the chart library with GTK
Version 0.15
Manipulate ByteStrings using Char operations. All Chars will be truncated to 8 bits. It can be expected that these functions will run at identical speeds to their Word8 equivalents in Data.ByteString.
More specifically these byte strings are taken to be in the subset of Unicode covered by code points 0-255. This covers Unicode Basic Latin, Latin-1 Supplement and C0+C1 Controls.
See:
* http://www.unicode.org/charts/
* http://www.unicode.org/charts/PDF/U0000.pdf
* http://www.unicode.org/charts/PDF/U0080.pdf
This module is intended to be imported qualified, to avoid name clashes with Prelude functions. eg.
> import qualified Data.ByteString.Char8 as B
The Char8 interface to bytestrings provides an instance of IsString for the ByteString type, enabling you to use string literals, and have them implicitly packed to ByteStrings. Use -XOverloadedStrings to enable this.
Manipulate lazy ByteStrings using Char operations. All Chars will be truncated to 8 bits. It can be expected that these functions will run at identical speeds to their Word8 equivalents in Data.ByteString.Lazy.
This module is intended to be imported qualified, to avoid name clashes with Prelude functions. eg.
> import qualified Data.ByteString.Lazy.Char8 as C
Commonly used character parsers.
Parsec compatibility module
Read a character from the standard input device (same as hGetChar stdin).
Write a character to the standard output device (same as hPutChar stdout).
utility function converting a Char to a show function that simply prepends the character unchanged.
Convert a C byte, representing a Latin-1 character, to the corresponding Haskell character.
Convert a Haskell character to a C character. This function is only safe on the first 256 characters.
Convert a Haskell character to a C signed char. This function is only safe on the first 256 characters.
Convert a Haskell character to a C unsigned char. This function is only safe on the first 256 characters.
Convert a C signed char, representing a Latin-1 character, to the corresponding Haskell character.
Convert a C unsigned char, representing a Latin-1 character, to the corresponding Haskell character.
Haskell type representing the C char type.
Show more results