Data.Word16.Patterns

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

Safe Haskell | Safe-Inferred
Language | Haskell2010

Data.Word16.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 `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.

Synopsis

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

# Control characters, x00-x1f

pattern NUL :: Word16 #

Null character (NUL)

pattern SOH :: Word16 #

Start of Heading (SOH)

pattern STX :: Word16 #

Start of Text (STX)

pattern ETX :: Word16 #

End of Text (ETX)

pattern EOT :: Word16 #

End of Transmission (EOT)

pattern ENQ :: Word16 #

Enquiry (ENQ)

pattern ACK :: Word16 #

Acknowledge (ACK)

pattern BEL :: Word16 #

Alert (BEL)

pattern BS :: Word16 #

Backspace (BS)

pattern TAB :: Word16 #

Character tabulation (TAB)

pattern LF :: Word16 #

End of line, line feed (LF)

pattern VT :: Word16 #

Line tabulation, vertical tab (VT)

pattern FF :: Word16 #

Form feed (FF)

pattern CR :: Word16 #

Carriage Return (CR)

pattern SO :: Word16 #

Locking-Shift One, Shift Out (SO)

pattern SI :: Word16 #

Locking-Shift Zero, Shift In (SI)

pattern DLE :: Word16 #

Data Link Escape (DLE)

pattern DC1 :: Word16 #

Device Control One, XON (DC1)

pattern DC2 :: Word16 #

Device Control Two (DC2)

pattern DC3 :: Word16 #

Device Control Three, XOFF (DC3)

pattern DC4 :: Word16 #

Device Control Four (DC4)

pattern NAK :: Word16 #

Negative Acknowledge (NAK)

pattern SYN :: Word16 #

Syncronous Idle (SYN)

pattern ETB :: Word16 #

End of Transmission Block (ETB)

pattern CAN :: Word16 #

Cancel (CAN)

pattern EOM :: Word16 #

End of Medium (EOM)

pattern SUB :: Word16 #

Substitute (SUB)

pattern ESC :: Word16 #

Escape (ESC)

pattern FS :: Word16 #

File Separator (FS)

pattern GS :: Word16 #

Group Separator (GS)

pattern RS :: Word16 #

Information Separator One, Record Separator (RS)

pattern US :: Word16 #

Information Separator Two, Unit Separator (US)

# Symbols 1, x20-x2f

pattern SPACE :: Word16 #

Space (SP), `' '`.

pattern EXCLAM :: Word16 #

Exclamation mark, `!`

pattern DOUBLE_QUOTE :: Word16 #

Quotation mark, double quote, `"`

pattern NUMBER :: Word16 #

Number sign, `#`

pattern DOLLAR :: Word16 #

Dollar sign, `$`

pattern PERCENT :: Word16 #

Percent sign, `%`

pattern AMPERSAND :: Word16 #

Ampersand, `&`

pattern SINGLE_QUOTE :: Word16 #

Apostrophe, single quote, `'`

pattern LEFT_PAREN :: Word16 #

Left parenthesis, `(`

pattern RIGHT_PAREN :: Word16 #

Right parenthesis, `)`

pattern ASTERISK :: Word16 #

Asterisk, `*`

pattern PLUS :: Word16 #

Plus sign, `+`

pattern COMMA :: Word16 #

Comma, `,`

pattern HYPHEN :: Word16 #

Hyphen-minus, `-`

pattern PERIOD :: Word16 #

Full stop, period, `.`

pattern SLASH :: Word16 #

Solidus, slash, `/`

# Digits, x30-x39

pattern DIGIT_0 :: Word16 #

Digit 0, `0`

pattern DIGIT_1 :: Word16 #

Digit 1, `1`

pattern DIGIT_2 :: Word16 #

Digit 2, `2`

pattern DIGIT_3 :: Word16 #

Digit 3, `3`

pattern DIGIT_4 :: Word16 #

Digit 4, `4`

pattern DIGIT_5 :: Word16 #

Digit 5, `5`

pattern DIGIT_6 :: Word16 #

Digit 6, `6`

pattern DIGIT_7 :: Word16 #

Digit 7, `7`

pattern DIGIT_8 :: Word16 #

Digit 8, `8`

pattern DIGIT_9 :: Word16 #

Digit 9, `9`

# Symbols 2, x3a-x40

pattern COLON :: Word16 #

Colon, `:`

pattern SEMICOLON :: Word16 #

Semicolon, `;`

pattern LESS :: Word16 #

Less-than sign, `<`

pattern EQUAL :: Word16 #

Equals sign, `=`

pattern GREATER :: Word16 #

Greater-than sign, `>`

pattern QUESTION :: Word16 #

Question mark, `?`

pattern AT :: Word16 #

Commercial At, `@`

# Upper case letters, x41-x5a

pattern UPPER_A :: Word16 #

Latin small letter A, `A`

pattern UPPER_B :: Word16 #

Latin small letter B, `B`

pattern UPPER_C :: Word16 #

Latin small letter C, `C`

pattern UPPER_D :: Word16 #

Latin small letter D, `D`

pattern UPPER_E :: Word16 #

Latin small letter E, `E`

pattern UPPER_F :: Word16 #

Latin small letter F, `F`

pattern UPPER_G :: Word16 #

Latin small letter G, `G`

pattern UPPER_H :: Word16 #

Latin small letter H, `H`

pattern UPPER_I :: Word16 #

Latin small letter I, `I`

pattern UPPER_J :: Word16 #

Latin small letter J, `J`

pattern UPPER_K :: Word16 #

Latin small letter K, `K`

pattern UPPER_L :: Word16 #

Latin small letter L, `L`

pattern UPPER_M :: Word16 #

Latin small letter M, `M`

pattern UPPER_N :: Word16 #

Latin small letter N, `N`

pattern UPPER_O :: Word16 #

Latin small letter O, `O`

pattern UPPER_P :: Word16 #

Latin small letter P, `P`

pattern UPPER_Q :: Word16 #

Latin small letter Q, `Q`

pattern UPPER_R :: Word16 #

Latin small letter R, `R`

pattern UPPER_S :: Word16 #

Latin small letter S, `S`

pattern UPPER_T :: Word16 #

Latin small letter T, `T`

pattern UPPER_U :: Word16 #

Latin small letter U, `U`

pattern UPPER_V :: Word16 #

Latin small letter V, `V`

pattern UPPER_W :: Word16 #

Latin small letter W, `W`

pattern UPPER_X :: Word16 #

Latin small letter X, `X`

pattern UPPER_Y :: Word16 #

Latin small letter Y, `Y`

pattern UPPER_Z :: Word16 #

Latin small letter Z, `Z`

# Symbols 3, x5b-x60

pattern LEFT_SQUARE :: Word16 #

Left square bracket, `[`

pattern BACKSLASH :: Word16 #

Reverse solidus, backslash, `\`

pattern RIGHT_SQUARE :: Word16 #

Right square bracket, `]`

pattern CIRCUM :: Word16 #

Circumflex accent, `^`

pattern UNDERSCORE :: Word16 #

Low line, underscore, `_`

pattern GRAVE :: Word16 #

Grave accent, ```

# Lower case letters, x61-x7a

pattern LOWER_A :: Word16 #

Latin small letter A, `a`

pattern LOWER_B :: Word16 #

Latin small letter B, `b`

pattern LOWER_C :: Word16 #

Latin small letter C, `c`

pattern LOWER_D :: Word16 #

Latin small letter D, `d`

pattern LOWER_E :: Word16 #

Latin small letter E, `e`

pattern LOWER_F :: Word16 #

Latin small letter F, `f`

pattern LOWER_G :: Word16 #

Latin small letter G, `g`

pattern LOWER_H :: Word16 #

Latin small letter H, `h`

pattern LOWER_I :: Word16 #

Latin small letter I, `i`

pattern LOWER_J :: Word16 #

Latin small letter J, `j`

pattern LOWER_K :: Word16 #

Latin small letter K, `k`

pattern LOWER_L :: Word16 #

Latin small letter L, `l`

pattern LOWER_M :: Word16 #

Latin small letter M, `m`

pattern LOWER_N :: Word16 #

Latin small letter N, `n`

pattern LOWER_O :: Word16 #

Latin small letter O, `o`

pattern LOWER_P :: Word16 #

Latin small letter P, `p`

pattern LOWER_Q :: Word16 #

Latin small letter Q, `q`

pattern LOWER_R :: Word16 #

Latin small letter R, `r`

pattern LOWER_S :: Word16 #

Latin small letter S, `s`

pattern LOWER_T :: Word16 #

Latin small letter T, `t`

pattern LOWER_U :: Word16 #

Latin small letter U, `u`

pattern LOWER_V :: Word16 #

Latin small letter V, `v`

pattern LOWER_W :: Word16 #

Latin small letter W, `w`

pattern LOWER_X :: Word16 #

Latin small letter X, `x`

pattern LOWER_Y :: Word16 #

Latin small letter Y, `y`

pattern LOWER_Z :: Word16 #

Latin small letter Z, `z`

# Symbols 5, x7b-x7f

pattern LEFT_CURLY :: Word16 #

Left curly bracket, `{`

pattern BAR :: Word16 #

Vertical line, vecrtical bar, `|`

pattern RIGHT_CURLY :: Word16 #

Right curly bracket, `}`

pattern TILDE :: Word16 #

Tilde, `~`

pattern DEL :: Word16 #

Delete (DEL)