Skip to content

Bad escape in Show #65

@nwolverson

Description

@nwolverson

Sorry if this is the wrong place - but I think it's maybe multiple issues.

I get the following error from psc-bundle 0.8.3 (only on Windows!):

Error in module Prelude (Foreign):

  The module could not be parsed:
  lexical error @ line 216 and column 14

This points at:

case "\a": return "'\\a'";

The same line is present in the 1.0-rc modularised version. As far as I can see (eg MDN) \a isn't actually a JavaScript string escape sequence, which is why I think it's an issue here - can we remove it? On the other hand the behaviour for an unknown escape should be to pass it through (\a means precisely a), which would be an issue for language-javascript, probably post purescript/purescript#1966.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething that should function correctly isn't.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions