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

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.

    • Packagecharacter-ps-0.1
    • Exports128
    • LanguageHaskell2010
    • LicenceBSD-3-Clause
    • SourcePatterns.hs

    Control characters, x00-x1f

    32 declarations
    patternpattern NUL :: Char
    #

    Null character (NUL)

    patternpattern SOH :: Char
    #

    Start of Heading (SOH)

    patternpattern STX :: Char
    #

    Start of Text (STX)

    patternpattern ETX :: Char
    #

    End of Text (ETX)

    patternpattern EOT :: Char
    #

    End of Transmission (EOT)

    patternpattern ENQ :: Char
    #

    Enquiry (ENQ)

    patternpattern ACK :: Char
    #

    Acknowledge (ACK)

    patternpattern BEL :: Char
    #

    Alert (BEL)

    patternpattern BS :: Char
    #

    Backspace (BS)

    patternpattern TAB :: Char
    #

    Character tabulation (TAB)

    patternpattern LF :: Char
    #

    End of line, line feed (LF)

    patternpattern VT :: Char
    #

    Line tabulation, vertical tab (VT)

    patternpattern FF :: Char
    #

    Form feed (FF)

    patternpattern CR :: Char
    #

    Carriage Return (CR)

    patternpattern SO :: Char
    #

    Locking-Shift One, Shift Out (SO)

    patternpattern SI :: Char
    #

    Locking-Shift Zero, Shift In (SI)

    patternpattern DLE :: Char
    #

    Data Link Escape (DLE)

    patternpattern DC1 :: Char
    #

    Device Control One, XON (DC1)

    patternpattern DC2 :: Char
    #

    Device Control Two (DC2)

    patternpattern DC3 :: Char
    #

    Device Control Three, XOFF (DC3)

    patternpattern DC4 :: Char
    #

    Device Control Four (DC4)

    patternpattern NAK :: Char
    #

    Negative Acknowledge (NAK)

    patternpattern SYN :: Char
    #

    Syncronous Idle (SYN)

    patternpattern ETB :: Char
    #

    End of Transmission Block (ETB)

    patternpattern CAN :: Char
    #

    Cancel (CAN)

    patternpattern EOM :: Char
    #

    End of Medium (EOM)

    patternpattern SUB :: Char
    #

    Substitute (SUB)

    patternpattern ESC :: Char
    #

    Escape (ESC)

    patternpattern FS :: Char
    #

    File Separator (FS)

    patternpattern GS :: Char
    #

    Group Separator (GS)

    patternpattern RS :: Char
    #

    Information Separator One, Record Separator (RS)

    patternpattern US :: Char
    #

    Information Separator Two, Unit Separator (US)

    Symbols 1, x20-x2f

    16 declarations
    patternpattern SPACE :: Char
    #

    Space (SP), ' '.

    patternpattern PLUS :: Char
    #

    Plus sign, +

    patternpattern PERIOD :: Char
    #

    Full stop, period, .

    patternpattern SLASH :: Char
    #

    Solidus, slash, /

    Digits, x30-x39

    10 declarations

    Symbols 2, x3a-x40

    7 declarations
    patternpattern LESS :: Char
    #

    Less-than sign, <

    patternpattern AT :: Char
    #

    Commercial At, @

    Upper case letters, x41-x5a

    26 declarations

    Symbols 3, x5b-x60

    6 declarations
    patternpattern CIRCUM :: Char
    #

    Circumflex accent, ^

    Lower case letters, x61-x7a

    26 declarations

    Symbols 5, x7b-x7f

    5 declarations
    patternpattern BAR :: Char
    #

    Vertical line, vecrtical bar, |

    patternpattern DEL :: Char
    #

    Delete (DEL)