Data.Word8.Patterns

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 #

Null character (NUL)

pattern SOH :: Word8 #

Start of Heading (SOH)

pattern STX :: Word8 #

Start of Text (STX)

pattern ETX :: Word8 #

End of Text (ETX)

pattern EOT :: Word8 #

End of Transmission (EOT)

pattern ENQ :: Word8 #

Enquiry (ENQ)

pattern ACK :: Word8 #

Acknowledge (ACK)

pattern BEL :: Word8 #

Alert (BEL)

pattern BS :: Word8 #

Backspace (BS)

pattern TAB :: Word8 #

Character tabulation (TAB)

pattern LF :: Word8 #

End of line, line feed (LF)

pattern VT :: Word8 #

Line tabulation, vertical tab (VT)

pattern FF :: Word8 #

Form feed (FF)

pattern CR :: Word8 #

Carriage Return (CR)

pattern SO :: Word8 #

Locking-Shift One, Shift Out (SO)

pattern SI :: Word8 #

Locking-Shift Zero, Shift In (SI)

pattern DLE :: Word8 #

Data Link Escape (DLE)

pattern DC1 :: Word8 #

Device Control One, XON (DC1)

pattern DC2 :: Word8 #

Device Control Two (DC2)

pattern DC3 :: Word8 #

Device Control Three, XOFF (DC3)

pattern DC4 :: Word8 #

Device Control Four (DC4)

pattern NAK :: Word8 #

Negative Acknowledge (NAK)

pattern SYN :: Word8 #

Syncronous Idle (SYN)

pattern ETB :: Word8 #

End of Transmission Block (ETB)

pattern CAN :: Word8 #

Cancel (CAN)

pattern EOM :: Word8 #

End of Medium (EOM)

pattern SUB :: Word8 #

Substitute (SUB)

pattern ESC :: Word8 #

Escape (ESC)

pattern FS :: Word8 #

File Separator (FS)

pattern GS :: Word8 #

Group Separator (GS)

pattern RS :: Word8 #

Information Separator One, Record Separator (RS)

pattern US :: Word8 #

Information Separator Two, Unit Separator (US)

# Symbols 1, x20-x2f

pattern SPACE :: Word8 #

Space (SP), `' '`.

pattern EXCLAM :: Word8 #

Exclamation mark, `!`

pattern DOUBLE_QUOTE :: Word8 #

Quotation mark, double quote, `"`

pattern NUMBER :: Word8 #

Number sign, `#`

pattern DOLLAR :: Word8 #

Dollar sign, `$`

pattern PERCENT :: Word8 #

Percent sign, `%`

pattern AMPERSAND :: Word8 #

Ampersand, `&`

pattern SINGLE_QUOTE :: Word8 #

Apostrophe, single quote, `'`

pattern LEFT_PAREN :: Word8 #

Left parenthesis, `(`

pattern RIGHT_PAREN :: Word8 #

Right parenthesis, `)`

pattern ASTERISK :: Word8 #

Asterisk, `*`

pattern PLUS :: Word8 #

Plus sign, `+`

pattern COMMA :: Word8 #

Comma, `,`

pattern HYPHEN :: Word8 #

Hyphen-minus, `-`

pattern PERIOD :: Word8 #

Full stop, period, `.`

pattern SLASH :: Word8 #

Solidus, slash, `/`

# Digits, x30-x39

pattern DIGIT_0 :: Word8 #

Digit 0, `0`

pattern DIGIT_1 :: Word8 #

Digit 1, `1`

pattern DIGIT_2 :: Word8 #

Digit 2, `2`

pattern DIGIT_3 :: Word8 #

Digit 3, `3`

pattern DIGIT_4 :: Word8 #

Digit 4, `4`

pattern DIGIT_5 :: Word8 #

Digit 5, `5`

pattern DIGIT_6 :: Word8 #

Digit 6, `6`

pattern DIGIT_7 :: Word8 #

Digit 7, `7`

pattern DIGIT_8 :: Word8 #

Digit 8, `8`

pattern DIGIT_9 :: Word8 #

Digit 9, `9`

# Symbols 2, x3a-x40

pattern COLON :: Word8 #

Colon, `:`

pattern SEMICOLON :: Word8 #

Semicolon, `;`

pattern LESS :: Word8 #

Less-than sign, `<`

pattern EQUAL :: Word8 #

Equals sign, `=`

pattern GREATER :: Word8 #

Greater-than sign, `>`

pattern QUESTION :: Word8 #

Question mark, `?`

pattern AT :: Word8 #

Commercial At, `@`

# Upper case letters, x41-x5a

pattern UPPER_A :: Word8 #

Latin small letter A, `A`

pattern UPPER_B :: Word8 #

Latin small letter B, `B`

pattern UPPER_C :: Word8 #

Latin small letter C, `C`

pattern UPPER_D :: Word8 #

Latin small letter D, `D`

pattern UPPER_E :: Word8 #

Latin small letter E, `E`

pattern UPPER_F :: Word8 #

Latin small letter F, `F`

pattern UPPER_G :: Word8 #

Latin small letter G, `G`

pattern UPPER_H :: Word8 #

Latin small letter H, `H`

pattern UPPER_I :: Word8 #

Latin small letter I, `I`

pattern UPPER_J :: Word8 #

Latin small letter J, `J`

pattern UPPER_K :: Word8 #

Latin small letter K, `K`

pattern UPPER_L :: Word8 #

Latin small letter L, `L`

pattern UPPER_M :: Word8 #

Latin small letter M, `M`

pattern UPPER_N :: Word8 #

Latin small letter N, `N`

pattern UPPER_O :: Word8 #

Latin small letter O, `O`

pattern UPPER_P :: Word8 #

Latin small letter P, `P`

pattern UPPER_Q :: Word8 #

Latin small letter Q, `Q`

pattern UPPER_R :: Word8 #

Latin small letter R, `R`

pattern UPPER_S :: Word8 #

Latin small letter S, `S`

pattern UPPER_T :: Word8 #

Latin small letter T, `T`

pattern UPPER_U :: Word8 #

Latin small letter U, `U`

pattern UPPER_V :: Word8 #

Latin small letter V, `V`

pattern UPPER_W :: Word8 #

Latin small letter W, `W`

pattern UPPER_X :: Word8 #

Latin small letter X, `X`

pattern UPPER_Y :: Word8 #

Latin small letter Y, `Y`

pattern UPPER_Z :: Word8 #

Latin small letter Z, `Z`

# Symbols 3, x5b-x60

pattern LEFT_SQUARE :: Word8 #

Left square bracket, `[`

pattern BACKSLASH :: Word8 #

Reverse solidus, backslash, `\`

pattern RIGHT_SQUARE :: Word8 #

Right square bracket, `]`

pattern CIRCUM :: Word8 #

Circumflex accent, `^`

pattern UNDERSCORE :: Word8 #

Low line, underscore, `_`

pattern GRAVE :: Word8 #

Grave accent, ```

# Lower case letters, x61-x7a

pattern LOWER_A :: Word8 #

Latin small letter A, `a`

pattern LOWER_B :: Word8 #

Latin small letter B, `b`

pattern LOWER_C :: Word8 #

Latin small letter C, `c`

pattern LOWER_D :: Word8 #

Latin small letter D, `d`

pattern LOWER_E :: Word8 #

Latin small letter E, `e`

pattern LOWER_F :: Word8 #

Latin small letter F, `f`

pattern LOWER_G :: Word8 #

Latin small letter G, `g`

pattern LOWER_H :: Word8 #

Latin small letter H, `h`

pattern LOWER_I :: Word8 #

Latin small letter I, `i`

pattern LOWER_J :: Word8 #

Latin small letter J, `j`

pattern LOWER_K :: Word8 #

Latin small letter K, `k`

pattern LOWER_L :: Word8 #

Latin small letter L, `l`

pattern LOWER_M :: Word8 #

Latin small letter M, `m`

pattern LOWER_N :: Word8 #

Latin small letter N, `n`

pattern LOWER_O :: Word8 #

Latin small letter O, `o`

pattern LOWER_P :: Word8 #

Latin small letter P, `p`

pattern LOWER_Q :: Word8 #

Latin small letter Q, `q`

pattern LOWER_R :: Word8 #

Latin small letter R, `r`

pattern LOWER_S :: Word8 #

Latin small letter S, `s`

pattern LOWER_T :: Word8 #

Latin small letter T, `t`

pattern LOWER_U :: Word8 #

Latin small letter U, `u`

pattern LOWER_V :: Word8 #

Latin small letter V, `v`

pattern LOWER_W :: Word8 #

Latin small letter W, `w`

pattern LOWER_X :: Word8 #

Latin small letter X, `x`

pattern LOWER_Y :: Word8 #

Latin small letter Y, `y`

pattern LOWER_Z :: Word8 #

Latin small letter Z, `z`

# Symbols 5, x7b-x7f

pattern LEFT_CURLY :: Word8 #

Left curly bracket, `{`

pattern BAR :: Word8 #

Vertical line, vecrtical bar, `|`

pattern RIGHT_CURLY :: Word8 #

Right curly bracket, `}`

pattern TILDE :: Word8 #

Tilde, `~`

pattern DEL :: Word8 #

Delete (DEL)