HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduletext-latin1-0.3.1Haskell98

Text.Latin1

Latin-1 utility functions.

  • 2 types
  • 22 values

Latin-1 checks

6 declarations
datadata IsLatin1
#
Instances15Property, Eq, Ord, Show, IsString, Semigroup, …
valuelatin1 :: Char -> Word8
#

Encode a Latin-1 character. No checks are performed.

Character properties

9 declarations
valueisLower :: Char -> Bool
#

Test if a character is a Latin-1 lower-case letter.

valueisUpper :: Char -> Bool
#

Test if a character is a Latin-1 upper-case letter.

valuetoLower :: Char -> Char
#

Map lower-case Latin-1 letters to the corresponding upper-case letters, leaving other characters as is.

valuetoUpper :: Char -> Char
#

Map upper-case Latin-1 letters to the corresponding lower-case letters, leaving other characters as is.

valueisAlphaNum :: Char -> Bool
#

Test if a character is either a Latin-1 letter or a decimal digit.

Byte properties

9 declarations
valueisControl8 :: Word8 -> Bool
#

Test if a byte is the encoding of a Latin-1 control character.

valueisLower8 :: Word8 -> Bool
#

Test if a byte is the encoding of a Latin-1 lower-case letter.

valueisUpper8 :: Word8 -> Bool
#

Test if a byte is the encoding of a Latin-1 upper-case letter.

valuetoLower8 :: Word8 -> Word8
#

Map the encodings of lower-case Latin-1 letters to the encodings of the corresponding upper-case letters, leaving other bytes as is.

valuetoUpper8 :: Word8 -> Word8
#

Map the encodings of upper-case Latin-1 letters to the encodings of the corresponding lower-case letters, leaving other bytes as is.

valueisAlphaNum8 :: Word8 -> Bool
#

Test if a byte is the encoding of either a Latin-1 letter or a decimal digit.