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.Word8.Patterns

This module provides pattern synonyms for Word8 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.Word8.Patterns as W8

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

    Null character (NUL)

    patternpattern SOH :: Word8
    #

    Start of Heading (SOH)

    patternpattern STX :: Word8
    #

    Start of Text (STX)

    patternpattern ETX :: Word8
    #

    End of Text (ETX)

    patternpattern EOT :: Word8
    #

    End of Transmission (EOT)

    patternpattern ENQ :: Word8
    #

    Enquiry (ENQ)

    patternpattern ACK :: Word8
    #

    Acknowledge (ACK)

    patternpattern BS :: Word8
    #

    Backspace (BS)

    patternpattern TAB :: Word8
    #

    Character tabulation (TAB)

    patternpattern LF :: Word8
    #

    End of line, line feed (LF)

    patternpattern VT :: Word8
    #

    Line tabulation, vertical tab (VT)

    patternpattern FF :: Word8
    #

    Form feed (FF)

    patternpattern CR :: Word8
    #

    Carriage Return (CR)

    patternpattern SO :: Word8
    #

    Locking-Shift One, Shift Out (SO)

    patternpattern SI :: Word8
    #

    Locking-Shift Zero, Shift In (SI)

    patternpattern DLE :: Word8
    #

    Data Link Escape (DLE)

    patternpattern DC1 :: Word8
    #

    Device Control One, XON (DC1)

    patternpattern DC2 :: Word8
    #

    Device Control Two (DC2)

    patternpattern DC3 :: Word8
    #

    Device Control Three, XOFF (DC3)

    patternpattern DC4 :: Word8
    #

    Device Control Four (DC4)

    patternpattern NAK :: Word8
    #

    Negative Acknowledge (NAK)

    patternpattern SYN :: Word8
    #

    Syncronous Idle (SYN)

    patternpattern ETB :: Word8
    #

    End of Transmission Block (ETB)

    patternpattern CAN :: Word8
    #

    Cancel (CAN)

    patternpattern EOM :: Word8
    #

    End of Medium (EOM)

    patternpattern SUB :: Word8
    #

    Substitute (SUB)

    patternpattern ESC :: Word8
    #

    Escape (ESC)

    patternpattern FS :: Word8
    #

    File Separator (FS)

    patternpattern GS :: Word8
    #

    Group Separator (GS)

    patternpattern RS :: Word8
    #

    Information Separator One, Record Separator (RS)

    patternpattern US :: Word8
    #

    Information Separator Two, Unit Separator (US)

    Symbols 1, x20-x2f

    16 declarations

    Digits, x30-x39

    10 declarations

    Symbols 2, x3a-x40

    7 declarations
    patternpattern LESS :: Word8
    #

    Less-than sign, <

    patternpattern AT :: Word8
    #

    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 :: Word8
    #

    Vertical line, vecrtical bar, |

    patternpattern DEL :: Word8
    #

    Delete (DEL)