HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecharacter-ps-0.1Haskell2010

Data.Word16.Patterns

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

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.Word16.Patterns as W16

hello = [W16.LOWER_H, W16.LOWER_E, W16.LOWER_L, W16.LOWER_L, W16.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 :: Word16
    #

    Null character (NUL)

    patternpattern SOH :: Word16
    #

    Start of Heading (SOH)

    patternpattern STX :: Word16
    #

    Start of Text (STX)

    patternpattern ETX :: Word16
    #

    End of Text (ETX)

    patternpattern EOT :: Word16
    #

    End of Transmission (EOT)

    patternpattern ACK :: Word16
    #

    Acknowledge (ACK)

    patternpattern BS :: Word16
    #

    Backspace (BS)

    patternpattern TAB :: Word16
    #

    Character tabulation (TAB)

    patternpattern LF :: Word16
    #

    End of line, line feed (LF)

    patternpattern VT :: Word16
    #

    Line tabulation, vertical tab (VT)

    patternpattern FF :: Word16
    #

    Form feed (FF)

    patternpattern CR :: Word16
    #

    Carriage Return (CR)

    patternpattern SO :: Word16
    #

    Locking-Shift One, Shift Out (SO)

    patternpattern SI :: Word16
    #

    Locking-Shift Zero, Shift In (SI)

    patternpattern DLE :: Word16
    #

    Data Link Escape (DLE)

    patternpattern DC1 :: Word16
    #

    Device Control One, XON (DC1)

    patternpattern DC2 :: Word16
    #

    Device Control Two (DC2)

    patternpattern DC3 :: Word16
    #

    Device Control Three, XOFF (DC3)

    patternpattern DC4 :: Word16
    #

    Device Control Four (DC4)

    patternpattern NAK :: Word16
    #

    Negative Acknowledge (NAK)

    patternpattern SYN :: Word16
    #

    Syncronous Idle (SYN)

    patternpattern ETB :: Word16
    #

    End of Transmission Block (ETB)

    patternpattern EOM :: Word16
    #

    End of Medium (EOM)

    patternpattern SUB :: Word16
    #

    Substitute (SUB)

    patternpattern FS :: Word16
    #

    File Separator (FS)

    patternpattern GS :: Word16
    #

    Group Separator (GS)

    patternpattern RS :: Word16
    #

    Information Separator One, Record Separator (RS)

    patternpattern US :: Word16
    #

    Information Separator Two, Unit Separator (US)

    Symbols 1, x20-x2f

    16 declarations

    Digits, x30-x39

    10 declarations

    Symbols 2, x3a-x40

    7 declarations
    patternpattern AT :: Word16
    #

    Commercial At, @

    Upper case letters, x41-x5a

    26 declarations

    Symbols 3, x5b-x60

    6 declarations

    Lower case letters, x61-x7a

    26 declarations

    Symbols 5, x7b-x7f

    5 declarations
    patternpattern BAR :: Word16
    #

    Vertical line, vecrtical bar, |