character-ps-0.1: Pattern synonyms for ASCII characters for Word8, Word16 etc

Safe Haskell | Safe-Inferred
Language | Haskell2010

Data.Word8.Patterns

Contents

- Control characters, x00-x1f
- 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

Description

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.

Synopsis

- pattern NUL :: Word8
- pattern SOH :: Word8
- pattern STX :: Word8
- pattern ETX :: Word8
- pattern EOT :: Word8
- pattern ENQ :: Word8
- pattern ACK :: Word8
- pattern BEL :: Word8
- pattern BS :: Word8
- pattern TAB :: Word8
- pattern LF :: Word8
- pattern VT :: Word8
- pattern FF :: Word8
- pattern CR :: Word8
- pattern SO :: Word8
- pattern SI :: Word8
- pattern DLE :: Word8
- pattern DC1 :: Word8
- pattern DC2 :: Word8
- pattern DC3 :: Word8
- pattern DC4 :: Word8
- pattern NAK :: Word8
- pattern SYN :: Word8
- pattern ETB :: Word8
- pattern CAN :: Word8
- pattern EOM :: Word8
- pattern SUB :: Word8
- pattern ESC :: Word8
- pattern FS :: Word8
- pattern GS :: Word8
- pattern RS :: Word8
- pattern US :: Word8
- pattern SPACE :: Word8
- pattern EXCLAM :: Word8
- pattern DOUBLE_QUOTE :: Word8
- pattern NUMBER :: Word8
- pattern DOLLAR :: Word8
- pattern PERCENT :: Word8
- pattern AMPERSAND :: Word8
- pattern SINGLE_QUOTE :: Word8
- pattern LEFT_PAREN :: Word8
- pattern RIGHT_PAREN :: Word8
- pattern ASTERISK :: Word8
- pattern PLUS :: Word8
- pattern COMMA :: Word8
- pattern HYPHEN :: Word8
- pattern PERIOD :: Word8
- pattern SLASH :: Word8
- pattern DIGIT_0 :: Word8
- pattern DIGIT_1 :: Word8
- pattern DIGIT_2 :: Word8
- pattern DIGIT_3 :: Word8
- pattern DIGIT_4 :: Word8
- pattern DIGIT_5 :: Word8
- pattern DIGIT_6 :: Word8
- pattern DIGIT_7 :: Word8
- pattern DIGIT_8 :: Word8
- pattern DIGIT_9 :: Word8
- pattern COLON :: Word8
- pattern SEMICOLON :: Word8
- pattern LESS :: Word8
- pattern EQUAL :: Word8
- pattern GREATER :: Word8
- pattern QUESTION :: Word8
- pattern AT :: Word8
- pattern UPPER_A :: Word8
- pattern UPPER_B :: Word8
- pattern UPPER_C :: Word8
- pattern UPPER_D :: Word8
- pattern UPPER_E :: Word8
- pattern UPPER_F :: Word8
- pattern UPPER_G :: Word8
- pattern UPPER_H :: Word8
- pattern UPPER_I :: Word8
- pattern UPPER_J :: Word8
- pattern UPPER_K :: Word8
- pattern UPPER_L :: Word8
- pattern UPPER_M :: Word8
- pattern UPPER_N :: Word8
- pattern UPPER_O :: Word8
- pattern UPPER_P :: Word8
- pattern UPPER_Q :: Word8
- pattern UPPER_R :: Word8
- pattern UPPER_S :: Word8
- pattern UPPER_T :: Word8
- pattern UPPER_U :: Word8
- pattern UPPER_V :: Word8
- pattern UPPER_W :: Word8
- pattern UPPER_X :: Word8
- pattern UPPER_Y :: Word8
- pattern UPPER_Z :: Word8
- pattern LEFT_SQUARE :: Word8
- pattern BACKSLASH :: Word8
- pattern RIGHT_SQUARE :: Word8
- pattern CIRCUM :: Word8
- pattern UNDERSCORE :: Word8
- pattern GRAVE :: Word8
- pattern LOWER_A :: Word8
- pattern LOWER_B :: Word8
- pattern LOWER_C :: Word8
- pattern LOWER_D :: Word8
- pattern LOWER_E :: Word8
- pattern LOWER_F :: Word8
- pattern LOWER_G :: Word8
- pattern LOWER_H :: Word8
- pattern LOWER_I :: Word8
- pattern LOWER_J :: Word8
- pattern LOWER_K :: Word8
- pattern LOWER_L :: Word8
- pattern LOWER_M :: Word8
- pattern LOWER_N :: Word8
- pattern LOWER_O :: Word8
- pattern LOWER_P :: Word8
- pattern LOWER_Q :: Word8
- pattern LOWER_R :: Word8
- pattern LOWER_S :: Word8
- pattern LOWER_T :: Word8
- pattern LOWER_U :: Word8
- pattern LOWER_V :: Word8
- pattern LOWER_W :: Word8
- pattern LOWER_X :: Word8
- pattern LOWER_Y :: Word8
- pattern LOWER_Z :: Word8
- pattern LEFT_CURLY :: Word8
- pattern BAR :: Word8
- pattern RIGHT_CURLY :: Word8
- pattern TILDE :: Word8
- pattern DEL :: Word8

# Control characters, x00-x1f

pattern NUL :: Word8 Source #

Null character (NUL)

pattern SOH :: Word8 Source #

Start of Heading (SOH)

pattern STX :: Word8 Source #

Start of Text (STX)

pattern ETX :: Word8 Source #

End of Text (ETX)

pattern EOT :: Word8 Source #

End of Transmission (EOT)

pattern ENQ :: Word8 Source #

Enquiry (ENQ)

pattern ACK :: Word8 Source #

Acknowledge (ACK)

pattern BEL :: Word8 Source #

Alert (BEL)

pattern BS :: Word8 Source #

Backspace (BS)

pattern TAB :: Word8 Source #

Character tabulation (TAB)

pattern LF :: Word8 Source #

End of line, line feed (LF)

pattern VT :: Word8 Source #

Line tabulation, vertical tab (VT)

pattern FF :: Word8 Source #

Form feed (FF)

pattern CR :: Word8 Source #

Carriage Return (CR)

pattern SO :: Word8 Source #

Locking-Shift One, Shift Out (SO)

pattern SI :: Word8 Source #

Locking-Shift Zero, Shift In (SI)

pattern DLE :: Word8 Source #

Data Link Escape (DLE)

pattern DC1 :: Word8 Source #

Device Control One, XON (DC1)

pattern DC2 :: Word8 Source #

Device Control Two (DC2)

pattern DC3 :: Word8 Source #

Device Control Three, XOFF (DC3)

pattern DC4 :: Word8 Source #

Device Control Four (DC4)

pattern NAK :: Word8 Source #

Negative Acknowledge (NAK)

pattern SYN :: Word8 Source #

Syncronous Idle (SYN)

pattern ETB :: Word8 Source #

End of Transmission Block (ETB)

pattern CAN :: Word8 Source #

Cancel (CAN)

pattern EOM :: Word8 Source #

End of Medium (EOM)

pattern SUB :: Word8 Source #

Substitute (SUB)

pattern ESC :: Word8 Source #

Escape (ESC)

pattern FS :: Word8 Source #

File Separator (FS)

pattern GS :: Word8 Source #

Group Separator (GS)

pattern RS :: Word8 Source #

Information Separator One, Record Separator (RS)

pattern US :: Word8 Source #

Information Separator Two, Unit Separator (US)

# Symbols 1, x20-x2f

pattern SPACE :: Word8 Source #

Space (SP), `' '`.

pattern EXCLAM :: Word8 Source #

Exclamation mark, `!`

pattern DOUBLE_QUOTE :: Word8 Source #

Quotation mark, double quote, `"`

pattern NUMBER :: Word8 Source #

Number sign, `#`

pattern DOLLAR :: Word8 Source #

Dollar sign, `$`

pattern PERCENT :: Word8 Source #

Percent sign, `%`

pattern AMPERSAND :: Word8 Source #

Ampersand, `&`

pattern SINGLE_QUOTE :: Word8 Source #

Apostrophe, single quote, `'`

pattern LEFT_PAREN :: Word8 Source #

Left parenthesis, `(`

pattern RIGHT_PAREN :: Word8 Source #

Right parenthesis, `)`

pattern ASTERISK :: Word8 Source #

Asterisk, `*`

pattern PLUS :: Word8 Source #

Plus sign, `+`

pattern COMMA :: Word8 Source #

Comma, `,`

pattern HYPHEN :: Word8 Source #

Hyphen-minus, `-`

pattern PERIOD :: Word8 Source #

Full stop, period, `.`

pattern SLASH :: Word8 Source #

Solidus, slash, `/`

# Digits, x30-x39

pattern DIGIT_0 :: Word8 Source #

Digit 0, `0`

pattern DIGIT_1 :: Word8 Source #

Digit 1, `1`

pattern DIGIT_2 :: Word8 Source #

Digit 2, `2`

pattern DIGIT_3 :: Word8 Source #

Digit 3, `3`

pattern DIGIT_4 :: Word8 Source #

Digit 4, `4`

pattern DIGIT_5 :: Word8 Source #

Digit 5, `5`

pattern DIGIT_6 :: Word8 Source #

Digit 6, `6`

pattern DIGIT_7 :: Word8 Source #

Digit 7, `7`

pattern DIGIT_8 :: Word8 Source #

Digit 8, `8`

pattern DIGIT_9 :: Word8 Source #

Digit 9, `9`

# Symbols 2, x3a-x40

pattern COLON :: Word8 Source #

Colon, `:`

pattern SEMICOLON :: Word8 Source #

Semicolon, `;`

pattern LESS :: Word8 Source #

Less-than sign, `<`

pattern EQUAL :: Word8 Source #

Equals sign, `=`

pattern GREATER :: Word8 Source #

Greater-than sign, `>`

pattern QUESTION :: Word8 Source #

Question mark, `?`

pattern AT :: Word8 Source #

Commercial At, `@`

# Upper case letters, x41-x5a

pattern UPPER_A :: Word8 Source #

Latin small letter A, `A`

pattern UPPER_B :: Word8 Source #

Latin small letter B, `B`

pattern UPPER_C :: Word8 Source #

Latin small letter C, `C`

pattern UPPER_D :: Word8 Source #

Latin small letter D, `D`

pattern UPPER_E :: Word8 Source #

Latin small letter E, `E`

pattern UPPER_F :: Word8 Source #

Latin small letter F, `F`

pattern UPPER_G :: Word8 Source #

Latin small letter G, `G`

pattern UPPER_H :: Word8 Source #

Latin small letter H, `H`

pattern UPPER_I :: Word8 Source #

Latin small letter I, `I`

pattern UPPER_J :: Word8 Source #

Latin small letter J, `J`

pattern UPPER_K :: Word8 Source #

Latin small letter K, `K`

pattern UPPER_L :: Word8 Source #

Latin small letter L, `L`

pattern UPPER_M :: Word8 Source #

Latin small letter M, `M`

pattern UPPER_N :: Word8 Source #

Latin small letter N, `N`

pattern UPPER_O :: Word8 Source #

Latin small letter O, `O`

pattern UPPER_P :: Word8 Source #

Latin small letter P, `P`

pattern UPPER_Q :: Word8 Source #

Latin small letter Q, `Q`

pattern UPPER_R :: Word8 Source #

Latin small letter R, `R`

pattern UPPER_S :: Word8 Source #

Latin small letter S, `S`

pattern UPPER_T :: Word8 Source #

Latin small letter T, `T`

pattern UPPER_U :: Word8 Source #

Latin small letter U, `U`

pattern UPPER_V :: Word8 Source #

Latin small letter V, `V`

pattern UPPER_W :: Word8 Source #

Latin small letter W, `W`

pattern UPPER_X :: Word8 Source #

Latin small letter X, `X`

pattern UPPER_Y :: Word8 Source #

Latin small letter Y, `Y`

pattern UPPER_Z :: Word8 Source #

Latin small letter Z, `Z`

# Symbols 3, x5b-x60

pattern LEFT_SQUARE :: Word8 Source #

Left square bracket, `[`

pattern BACKSLASH :: Word8 Source #

Reverse solidus, backslash, `\`

pattern RIGHT_SQUARE :: Word8 Source #

Right square bracket, `]`

pattern CIRCUM :: Word8 Source #

Circumflex accent, `^`

pattern UNDERSCORE :: Word8 Source #

Low line, underscore, `_`

pattern GRAVE :: Word8 Source #

Grave accent, ```

# Lower case letters, x61-x7a

pattern LOWER_A :: Word8 Source #

Latin small letter A, `a`

pattern LOWER_B :: Word8 Source #

Latin small letter B, `b`

pattern LOWER_C :: Word8 Source #

Latin small letter C, `c`

pattern LOWER_D :: Word8 Source #

Latin small letter D, `d`

pattern LOWER_E :: Word8 Source #

Latin small letter E, `e`

pattern LOWER_F :: Word8 Source #

Latin small letter F, `f`

pattern LOWER_G :: Word8 Source #

Latin small letter G, `g`

pattern LOWER_H :: Word8 Source #

Latin small letter H, `h`

pattern LOWER_I :: Word8 Source #

Latin small letter I, `i`

pattern LOWER_J :: Word8 Source #

Latin small letter J, `j`

pattern LOWER_K :: Word8 Source #

Latin small letter K, `k`

pattern LOWER_L :: Word8 Source #

Latin small letter L, `l`

pattern LOWER_M :: Word8 Source #

Latin small letter M, `m`

pattern LOWER_N :: Word8 Source #

Latin small letter N, `n`

pattern LOWER_O :: Word8 Source #

Latin small letter O, `o`

pattern LOWER_P :: Word8 Source #

Latin small letter P, `p`

pattern LOWER_Q :: Word8 Source #

Latin small letter Q, `q`

pattern LOWER_R :: Word8 Source #

Latin small letter R, `r`

pattern LOWER_S :: Word8 Source #

Latin small letter S, `s`

pattern LOWER_T :: Word8 Source #

Latin small letter T, `t`

pattern LOWER_U :: Word8 Source #

Latin small letter U, `u`

pattern LOWER_V :: Word8 Source #

Latin small letter V, `v`

pattern LOWER_W :: Word8 Source #

Latin small letter W, `w`

pattern LOWER_X :: Word8 Source #

Latin small letter X, `x`

pattern LOWER_Y :: Word8 Source #

Latin small letter Y, `y`

pattern LOWER_Z :: Word8 Source #

Latin small letter Z, `z`

# Symbols 5, x7b-x7f

pattern LEFT_CURLY :: Word8 Source #

Left curly bracket, `{`

pattern BAR :: Word8 Source #

Vertical line, vecrtical bar, `|`

pattern RIGHT_CURLY :: Word8 Source #

Right curly bracket, `}`

pattern TILDE :: Word8 Source #

Tilde, `~`

pattern DEL :: Word8 Source #

Delete (DEL)