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

[BUG] Indentation is not preserved #25

Open
Sorokin-Anton opened this issue Nov 29, 2022 · 0 comments
Open

[BUG] Indentation is not preserved #25

Sorokin-Anton opened this issue Nov 29, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Sorokin-Anton
Copy link
Contributor

Sorokin-Anton commented Nov 29, 2022

Description

According to the tutorial, we should not strip any trailing whitespaces when the first line is not indented. But we do.

To Reproduce

Steps to reproduce the behavior:

Use int on a such string:

t :: Text
t = [int||
1
  2
|]

and then see what is t in GHCi:

ghci> t
"1\n2\n"

Note the space before 2 disappeared.
Looks like this happen only when one of lines has no indentation at all

Expected behavior

t = "1\n 2\n"

@Sorokin-Anton Sorokin-Anton added the bug Something isn't working label Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant