Char +base

data Char :: *
base Prelude, base Data.Char, base GHC.Exts
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).
Char :: Char -> Lexeme
base Text.Read.Lex, base Text.Read
Character literal
module Data.Char
base Data.Char
The Char type and associated operations.
CharConstr :: Char -> ConstrRep
base Data.Data
CharRep :: DataRep
base Data.Data
type CharBufElem = Char
base GHC.IO.Buffer
type CharBuffer = Buffer Char
base GHC.IO.Buffer
char :: Char -> ReadP Char
base Text.ParserCombinators.ReadP
Parses and returns the specified character.
charIsRepresentable :: Char -> IO Bool
base Foreign.C.String
Determines whether a character can be accurately encoded in a CString. Unrepresentable characters are converted to '?'. Currently only Latin-1 characters are representable.
charSize :: Int
base GHC.IO.Buffer
getChar :: IO Char
base Prelude, base System.IO
Read a character from the standard input device (same as hGetChar stdin).
putChar :: Char -> IO ()
base Prelude, base System.IO
Write a character to the standard output device (same as hPutChar stdout).
showChar :: Char -> ShowS
base Prelude, base Text.Show
utility function converting a Char to a show function that simply prepends the character unchanged.
castCCharToChar :: CChar -> Char
base Foreign.C.String
Convert a C byte, representing a Latin-1 character, to the corresponding Haskell character.
castCharToCChar :: Char -> CChar
base Foreign.C.String
Convert a Haskell character to a C character. This function is only safe on the first 256 characters.
castCharToCSChar :: Char -> CSChar
base Foreign.C.String
Convert a Haskell character to a C signed char. This function is only safe on the first 256 characters.
castCharToCUChar :: Char -> CUChar
base Foreign.C.String
Convert a Haskell character to a C unsigned char. This function is only safe on the first 256 characters.
castCSCharToChar :: CSChar -> Char
base Foreign.C.String
Convert a C signed char, representing a Latin-1 character, to the corresponding Haskell character.
castCUCharToChar :: CUChar -> Char
base Foreign.C.String
Convert a C unsigned char, representing a Latin-1 character, to the corresponding Haskell character.
data CChar
base Foreign.C.Types
Haskell type representing the C char type.
data CSChar
base Foreign.C.Types
Haskell type representing the C signed char type.
data CUChar
base Foreign.C.Types
Haskell type representing the C unsigned char type.
data CWchar
base Foreign.C.Types
Haskell type representing the C wchar_t type.
hGetChar :: Handle -> IO Char
base System.IO, base GHC.IO.Handle
Computation hGetChar hdl reads a character from the file or channel managed by hdl, blocking until a character is available. This operation may fail with: * isEOFError if the end of file has been reached.
hPutChar :: Handle -> Char -> IO ()
base System.IO, base GHC.IO.Handle
Computation hPutChar hdl ch writes the character ch to the file or channel managed by hdl. Characters may be buffered if buffering is enabled for hdl. This operation may fail with: * isFullError if the device is full; or * isPermissionError if another system resource limit would be exceeded.
class IsChar c
base Text.Printf
lexChar :: ReadP Char
base Text.Read.Lex
lexLitChar :: ReadS String
base Data.Char
Read a string representation of a character, using Haskell source-language escape conventions. For example: > lexLitChar "\\nHello" = [("\\n", "Hello")]
mkCharConstr :: DataType -> Char -> Constr
base Data.Data
Makes a constructor for Char.
mkCharType :: String -> DataType
base Data.Data
Constructs the Char type
readLitChar :: ReadS Char
base Data.Char
Read a string representation of a character, using Haskell source-language escape conventions, and convert it to the character that it encodes. For example: > readLitChar "\\nHello" = [('\n', "Hello")]
showLitChar :: Char -> ShowS
base Data.Char
Convert a character to a string using only printable characters, using Haskell source-language escape conventions. For example: > showLitChar '\n' s = "\\n" ++ s
isFullCharBuffer :: Buffer e -> Bool
base GHC.IO.Buffer
mAX_CHARLIKE :: Int
base GHC.Constants
mIN_CHARLIKE :: Int
base GHC.Constants
newCharBuffer :: Int -> BufferState -> IO CharBuffer
base GHC.IO.Buffer
peekCharBuf :: RawCharBuffer -> Int -> IO Char
base GHC.IO.Buffer
type RawCharBuffer = RawBuffer CharBufElem
base GHC.IO.Buffer
readCharBuf :: RawCharBuffer -> Int -> IO (Char, Int)
base GHC.IO.Buffer
readCharBufPtr :: Ptr CharBufElem -> Int -> IO (Char, Int)
base GHC.IO.Buffer

Show more results