HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Moduletext-latin1-0.3.1Haskell98

Text.Latin1

Latin-1 utility functions.

Contents
  1. Latin-1 checks
  2. Character properties
  3. Byte properties
Synopsis

Latin-1 checks

datadata IsLatin1
#
Instances15Property, Eq, Ord, Show, IsString, Semigroup, …

Character properties

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.

Byte properties

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.