Skip to content

Commit bf81c84

Browse files
committed
Fix invalid escape sequence in show
1 parent 4c97cec commit bf81c84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Prelude.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ exports.showCharImpl = function (c) {
213213
var code = c.charCodeAt(0);
214214
if (code < 0x20 || code === 0x7F) {
215215
switch (c) {
216-
case "\a": return "'\\a'";
216+
case "\x07": return "'\\a'";
217217
case "\b": return "'\\b'";
218218
case "\f": return "'\\f'";
219219
case "\n": return "'\\n'";
@@ -235,7 +235,7 @@ exports.showStringImpl = function (s) {
235235
case "\"":
236236
case "\\":
237237
return "\\" + c;
238-
case "\a": return "\\a";
238+
case "\x07": return "\\a";
239239
case "\b": return "\\b";
240240
case "\f": return "\\f";
241241
case "\n": return "\\n";

0 commit comments

Comments
 (0)