We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
According to the tutorial, we should not strip any trailing whitespaces when the first line is not indented. But we do.
Steps to reproduce the behavior:
Use int on a such string:
int
t :: Text t = [int|| 1 2 |]
and then see what is t in GHCi:
t
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
2
t = "1\n 2\n"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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:and then see what is
t
in GHCi: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"
The text was updated successfully, but these errors were encountered: