word8-0.1.3: Word8 library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Word8

Description

Word8 library to be used with Data.ByteString. All function assumes that Word8 is encoded in Latin-1 (ISO-8859-1). All utility functions are supposed to work as if those of Char. Exceptions are described in the function documentations.

Base library 4.7 (GHC 7.8) or earlier is based on Unicode 6. Base library 4.8 (GHC 7.10) or later is based on Unicode 7. isLower, isSymbol and isPunctuation behave differently.

Synopsis

Re-exporting

data Word8 Source #

8-bit unsigned integer type

Instances

Instances details
Bits Word8

Since: base-2.1

Instance details

Defined in GHC.Word

FiniteBits Word8

Since: base-4.6.0.0

Instance details

Defined in GHC.Word

Bounded Word8

Since: base-2.1

Instance details

Defined in GHC.Word

Enum Word8

Since: base-2.1

Instance details

Defined in GHC.Word

Ix Word8

Since: base-2.1

Instance details

Defined in GHC.Word

Num Word8

Since: base-2.1

Instance details

Defined in GHC.Word

Read Word8

Since: base-2.1

Instance details

Defined in GHC.Read

Integral Word8

Since: base-2.1

Instance details

Defined in GHC.Word

Real Word8

Since: base-2.1

Instance details

Defined in GHC.Word

Show Word8

Since: base-2.1

Instance details

Defined in GHC.Word

Eq Word8

Since: base-2.1

Instance details

Defined in GHC.Word

Methods

(==) :: Word8 -> Word8 -> Bool Source #

(/=) :: Word8 -> Word8 -> Bool Source #

Ord Word8

Since: base-2.1

Instance details

Defined in GHC.Word

Character classification

isLower :: Word8 -> Bool Source #

This function returns True for 170 and 186 in Unicode 6. But it returns False in Unicode 7.

isPunctuation :: Word8 -> Bool Source #

This function returns False for 167 and 182 in Unicode 6. But it returns True in Unicode 7.

isSymbol :: Word8 -> Bool Source #

This function returns True for 167 and 182 in Unicode 6. But it returns False in Unicode 7.

Subranges

Case conversion

toUpper :: Word8 -> Word8 Source #

Micro sign/mu (0xb5) and small letter Y with diaeresis (0xff) remain the same.

toTitle :: Word8 -> Word8 Source #

Micro sign/mu (0xb5) and small letter Y with diaeresis (0xff) remain the same.

ASCII charactors

Some Latin-1 charactors