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

Modulecharacter-ps-0.1Haskell2010

Data.Char.Patterns

This module provides pattern synonyms for Char in Basic Latin block (range 'x00-x7f').

The pattern names are inspired by Unicode (letter and digits) and PostScript names (symbols), e.g. / is SLASH, not SOLIDUS.

This module is designed to be imported qualified

import Data.Char.Patterns as C

hello = [C.LOWER_H, C.LOWER_E, C.LOWER_L, C.LOWER_L, C.LOWER_O]

but can also be used unqualified as well.

Contents
  1. Control characters, x00-x1f
  2. Symbols 1, x20-x2f
  3. Digits, x30-x39
  4. Symbols 2, x3a-x40
  5. Upper case letters, x41-x5a
  6. Symbols 3, x5b-x60
  7. Lower case letters, x61-x7a
  8. Symbols 5, x7b-x7f
Synopsis
  • Packagecharacter-ps-0.1
  • Exports128
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePatterns.hs

Control characters, x00-x1f

patternpattern VT :: Char

Line tabulation, vertical tab (VT)

patternpattern SO :: Char

Locking-Shift One, Shift Out (SO)

patternpattern SI :: Char

Locking-Shift Zero, Shift In (SI)

patternpattern DC3 :: Char

Device Control Three, XOFF (DC3)

patternpattern RS :: Char

Information Separator One, Record Separator (RS)

patternpattern US :: Char

Information Separator Two, Unit Separator (US)

Symbols 1, x20-x2f

Digits, x30-x39

Symbols 2, x3a-x40

Upper case letters, x41-x5a

Symbols 3, x5b-x60

Lower case letters, x61-x7a

Symbols 5, x7b-x7f