Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

characters in quotes aren't escaped correctly #35

Closed
cdepillabout opened this issue Dec 6, 2021 · 0 comments · Fixed by #47
Closed

characters in quotes aren't escaped correctly #35

cdepillabout opened this issue Dec 6, 2021 · 0 comments · Fixed by #47
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@cdepillabout
Copy link
Member

It looks like some characters in quotes aren't escaped correctly.

I haven't extensively tested this, but here is one example I've found:

module Main where

example :: String
example = "\""

This compiles to:

let
  module = { };
  example = """;
in
  {inherit example;}

But example should probably be "\"".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
1 participant