Variable: haskell-string-literal-decode1-table

haskell-string-literal-decode1-table is a variable defined in haskell-string.el.

Value

#s(hash-table test equal data
	      ("\\NUL" "�" "\\SOH" "" "\\STX" "" "\\ETX" ""
	       "\\EOT" "" "\\ENQ" "" "\\ACK" "" "\\BEL" ""
	       "\\BS" "" "\\HT" "	" "\\LF" "\n" "\\VT" ""
	       "\\FF" "\f" "\\CR" "
" "\\SO" "" "\\SI" "" "\\DLE"
	       "" "\\DC1" "" "\\DC2" "" "\\DC3" "" "\\DC4"
	       "" "\\NAK" "" "\\SYN" "" "\\ETB" "" "\\CAN"
	       "" "\\EM" "" "\\SUB" "" "\\ESC" "" "\\FS" ""
	       "\\GS" "" "\\RS" "" "\\US" "" "\\SP" " " "\\DEL"
	       "" "\\a" "" "\\b" "" "\\f" "\f" "\\n" "\n" "\\r"
	       "
" "\\t" "	" "\\v" "" "\\\\" "\\" "\\\"" "\""
	       "\\'" "'" "\\&" ""))

Documentation

Hash table containing irregular escape sequences and their decoded strings.

Used by haskell-string-literal-decode1.

Source Code

;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-string.el
(defconst haskell-string-literal-decode1-table
  (let ((h (make-hash-table :test 'equal)))
    (mapc (lambda (c) (puthash (concat "\\" (car c)) (cdr c) h))
          '(;; ascii-escapes
            ("NUL" . "\x00") ("SOH" . "\x01") ("STX" . "\x02") ("ETX" . "\x03") ("EOT" . "\x04") ("ENQ" . "\x05")
            ("ACK" . "\x06") ("BEL" . "\x07") ("BS"  . "\x08") ("HT"  . "\x09") ("LF"  . "\x0a") ("VT"  . "\x0b")
            ("FF"  . "\x0c") ("CR"  . "\x0d") ("SO"  . "\x0e") ("SI"  . "\x0f") ("DLE" . "\x10") ("DC1" . "\x11")
            ("DC2" . "\x12") ("DC3" . "\x13") ("DC4" . "\x14") ("NAK" . "\x15") ("SYN" . "\x16") ("ETB" . "\x17")
            ("CAN" . "\x18") ("EM"  . "\x19") ("SUB" . "\x1a") ("ESC" . "\x1b") ("FS"  . "\x1c") ("GS"  . "\x1d")
            ("RS"  . "\x1e") ("US"  . "\x1f") ("SP"  . "\x20")                                   ("DEL" . "\x7f" )
            ;; C-compatible single-char escape sequences
            ("a" . "\x07") ("b" . "\x08") ("f" . "\x0c") ("n" . "\x0a") ("r" . "\x0d") ("t" . "\x09") ("v" . "\x0b")
            ;; trivial escapes
            ("\\" . "\\") ("\"" . "\"") ("'" . "'")
            ;; "empty" escape
            ("&" . "")))
    h)
  "Hash table containing irregular escape sequences and their decoded strings.
Used by `haskell-string-literal-decode1'.")