HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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.